OnlyOnePixel

Share this post

Machine Learning #4

onlyonepixel.substack.com
Machine Learning

Machine Learning #4

Linear Regression With One Variable | Cost Function

Uchechukwu Emmanuel
Mar 11, 2022
1
Share this post

Machine Learning #4

onlyonepixel.substack.com

Cost Function (Squared error function)

Cost Functions helps us figure out how to fit the best possible straight line in our data.

Recall that m is the number of training examples (number of rows)

Parameters

In linear regression we have a training set like the one plotted above, what we want to do is to come up with values for the parameters (theta 0 and theta 1) so that the straight line we get out of it, corresponds to a straight line that somehow fits the data well.

NOTE:

y = mx + c # equation of a line

theta 0 = c

theta 1 = m

y = h(theta0, theta 1)

Minimising Theta 0, Theta 1

Share this post

Machine Learning #4

onlyonepixel.substack.com
Comments
TopNewCommunity

No posts

Ready for more?

© 2023 Uchechukwu Emmanuel
Privacy ∙ Terms ∙ Collection notice
Start WritingGet the app
Substack is the home for great writing