Skip to content

Linear Regression implementation based on the mathematical foundation

Notifications You must be signed in to change notification settings

ghfri-code/Linear-regression

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Linear regression tries to model the relationship between two variables by applying a linear equation to a series of data. Implement linear regression using closed form solution and the Gradient Descent algorithm. Report the learned parameters (θ0 , θ1 , ..., θn ), and also the value of MSE error on the train and test data.

Plot of the datasets and regression lines:

closed form

closedform2

Gradient Descent

gradient

Plot cost function in Gradient Descent

cost function

About

Linear Regression implementation based on the mathematical foundation

Topics

Resources

Stars

Watchers

Forks