Python Code For Gradient Descent In Ml