GoConqr has a new look! Let us know what you think.

Notes

Cost Function

Mukundhan Srinivasan Machine Learning English 3 pages

Content of the notes (3)

Page 1

Model :

(x,y) => Data Set

m => number of data pairs in data set

(xi , yi) => element i in data set (x,y)

supervised learning algorithm:

training set

|

learning algorithm

|

size of house -> hypothesis h -> estimated price

linear regression : h (x) = theta0 + theta1*x

Page 2

h (x) = theta0 + theta1*x;

error = (theta0 + theta1*xi) - yi

sum of squared errors = sigma (1->m) error^2

mean sum of squared errors = 1/2m * (sum of squared errors)

...also referred to as cost function;

objective : find theta0 & theta1 so as to minimize cost function

exercise : h(x) = theta1 * x

given data sets (1,1) (2,2) (3,3)

find theta1, that minimizes cost function J(theta1)

Page 3

for 2 parameters theta0 and theta1:

plot as J(theta) as functions of theta0 and theta1

Information

Description
Machine Learning Note on Cost Function, created by Mukundhan Srinivasan on 17/03/2018.
Views
0
Rating

Feedback

What is it about?

What do you think of the new look?

How do you like it?