0% found this document useful (0 votes)
28 views1 page

Machine Learning: BS/MS (Computer Science)

This document appears to be an assignment for a machine learning course. It includes a small dataset with inputs X and outputs Y and asks the student to: 1) Find the regression line equation for predicting Y from X in the form y=w0+w1x and calculate the R-square value. 2) Use batch and stochastic gradient descent with a learning rate of 0.1 to find the optimal values of w0 and w1 to fit the regression line, initializing both w0 and w1 to 0.5. The assignment is worth a total of 15 marks.

Uploaded by

Maryam Qazi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
28 views1 page

Machine Learning: BS/MS (Computer Science)

This document appears to be an assignment for a machine learning course. It includes a small dataset with inputs X and outputs Y and asks the student to: 1) Find the regression line equation for predicting Y from X in the form y=w0+w1x and calculate the R-square value. 2) Use batch and stochastic gradient descent with a learning rate of 0.1 to find the optimal values of w0 and w1 to fit the regression line, initializing both w0 and w1 to 0.5. The assignment is worth a total of 15 marks.

Uploaded by

Maryam Qazi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 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