Full code in https://github.com/SSaishruthi/Math_behind_Gradient_Descent There are many ways to frame the learning process. Easiest way is to use labelled data. For a given input, it is necessary to learn how these are mapped to the output. To measure the performance, an error function is defined. Given an input, prediction is…