Skip to content

EliasNowak/LinearRegression

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Linear Regression

Situation

I have some data, and would like to build a model using this training data to predict the y values of future x values.

Procedure

  • Model

$$f_{w,b}(x^{(i)}) = wx^{(i)} + b $$

  • Parameters

w,b

  • cost function

$$J(w,b) = \frac{1}{2m} \sum\limits_{i = 0}^{m-1} (f_{w,b}(x^{(i)}) - y^{(i)})^2 $$

  • goal:

minimize J(w,b)

Gradient descent

I used Gradient descent to minimize my cost function.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages