Skip to content

dbolotov/linear_regression

Repository files navigation

###Linear Regression Template

####Description Linear regression algorithm implemented in MATLAB and python.

Regression parameters are learned using gradient descent or normal equation. Allows any (reasonable) number of continuous features. Splits input (csv file) into training and test sets. Uses training set to learn parameters, and computes error on both training and test sets. Plots cost function convergence if using gradient descent (set option in script).

Code based on Ex.1 of ml-class.org.

####Datasets used in development and testing Housing Dataset

####Files MATLAB regression script: linear_regression_script.m

Functional form of script (allows specification of parameters in function call): linear_regression.m

Python implementation of regression script: lin_reg.py

MATLAB functions used by main script and function: computeCostMulti.m, gradientDescentMulti.m

About

linear regression algorithm developed in MATLAB

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published