How Projected Gradient Descent works in Machine Learning pipelines part1