Skip to content

hitz02/LinearRegression_using_BatchGradient

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Performing Linear Regression using Batch Gradient Descent in R

The objective of this project is to perform linear regression using batch gradient descent manually. Applying iterative batch gradient descent to the house price dataset. The dataset has following columns - house area, the number of bedrooms and price.

Creating a function that takes input as - predictor variables as a data frame, response variable, no. of iterations and alpha (learning rate) and returns theta (coefficients of variables) and Jtheta (cost of each iteration)

Creating a plot to view the cost of each iteration against its coefficients i.e. Jtheta vs theta.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages