This assignment is to implement the gradient descent algorithm (GDA) for training a simple linear regression model for the dataset

computer science

Description

GRADIENT DESCENT ALGORITHM

1)      An understanding of linear regression by using gradient descent as our optimization technique will help us understand more complex models in the future. This assignment is to implement the gradient descent algorithm (GDA) for training a simple linear regression model for the dataset listed below. It is better to display the learning rate and convergence criterion in your program (not hard-coded). The algorithm is listed below.


Age (x)                                                             B.P(y)

20

43

63

26

53

31

58

46

58

70

46

53

60

20

63

43

26

19

31

23

 

120

128

141

126

134

128

136

132

140

144

128

136

146

124

143

130

124

121

126

123


2)      After completing the above, you are to implement the GDA for training multivariable linear regression model. (You can make up a second set of input variables for a multivariable dataset).

Write your code in Python and A GUI interface is mandatory. Submit a word file of your well-commented source program, your design and your printed outputs (or screen shots). Please include your codes in your word file. Please do not take codes from the website but try to understand the algorithm and implement the algorithm on your own.

 


Related Questions in computer science category