Skip to content

A simple Octave/Matlab code to compute cost function for linear regression

Notifications You must be signed in to change notification settings

tanmaysawaji/Linear-Regression-with-one-variable

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Linear-Regression-with-one-variable

A simple Octave/Matlab code to compute cost function for linear regression.

The computeCost.m file computes the cost function.

The gradientDescent.m file minimizes the cost cost function J(theta).

examples.txt has comma seperated variables, the first column is the independent variable x and the second column is the dependent variable y.

About

A simple Octave/Matlab code to compute cost function for linear regression

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published