Working with Projected Gradient Descent part2(Machine Learning)