GoConqr hat ein neues Design! Sag uns, wie es dir gefällt.

Notizen

Cost Function

Mukundhan Srinivasan Machine Learning Englisch 3 Seiten

Inhalt der Notizen (3)

Seite 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

Seite 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)

Seite 3

for 2 parameters theta0 and theta1:

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

Informationen

Beschreibung
Machine Learning Notiz am Cost Function, erstellt von Mukundhan Srinivasan am 17/03/2018.
Erstellt von
Mukundhan Srinivasan · Mär 2018
Aktualisiert
17 Mär 2018
Aufrufe
0
Bewertung

Feedback

Worum geht es?

Wie gefällt dir das neue Design?

Dein Eindruck