Drama, Film, and Mass Communication homework help

Take the demo code for linear re-gression available at https://github.com/pytorch/examples/blob/master/regression/main.py.This demo implements Stochastic Gradient Descent for estimating the parametersof the linear model. Your task is to familiarize yourself with every step of the code, andunderstand what it is doing.(a) Modify the simplistic implementation of Gradient Descent to use SGD class in thetorch.optim package (http://pytorch.org/docs/master/optim.html#torch.optim.SGD). Modify the learning rate and comment on its eect.(b) You are provided with a toy dataset in qn2 data.csv. The data relates to the amountof corn produced (column 3) with respect to the amount of fertilizers and insecticidesthat are used (column 1 and column 2). Fit a linear regression model on this data,trained with SGD. Report the parameters of the trained model(weights[w1, w2] andthe bias). Report the values of the number of corn produced with the following testset:test_set = torch.Tensor([[6,4],[10,5],[14,8]])Submit your code along with the weight, biases and the predicted values.(c) Implement the least squares solution = (XTX)????1XTy using the same dataset. Whatare the predictions for the above test set? How do they compare to the predictions ofthe linear neuron trained with SGD? How do the parameters compare?Can anyone please help me with this assignment ?