You are on page 1of 1

Machine Learning

BS/MS (Computer Science)


Dr. S. Nadeem Ahsan/Syed Rizwan
(Assignment Number: 03)
Total Marks 15

Question # 1: Let’s suppose you have a dataset.


X Y
1 1.5
2 2.0
3 2.5

a) Find the equation of regression line of Y on X give your answer in the form
y= w0+w1x and then find the R-square.

b) Find the optimum value of w0 and w1 using batch and stochastic method of
gradient descent. Use learning rate = 0.1, initial value of w 0=0.5 and initial
value of w1=0.5

You might also like