Description
Your homework should contain the following steps:
- Generate N = 10000 random numbers from [0,1]:
x1,x2,…,xN ∈ [0,1],
√
and then obtain their labels: yi = 1 + xi, i = 1,2,…,N.
- Do linear regression on your generated data using stochastic gradient descent (implement yourself).
- Do linear regression on your generated data using mini-batch gradient descent (implement yourself). d*) Do linear regression on your generated data using tensorflow.
- Sketch the graphs of all approximations on one graph.
- Compare all solutions with the first degree Taylor approximation of√
the function 1 + x.
2*. Pass the following tutorial.
Remarks:
- Exercises with asterisks are supplementary and will not be graded.
- Don’t forget about train, validation and test sets.
- Use jupyter notebook for writing your code.
- You can use google for any question, but don’t do copies of others’ codes.
- You can ask me whatever you want and whenever you want.




