Transcription of CS229 Lecture notes - Stanford Engineering Everywhere
{{id}} {{{paragraph}}}
CS229 Lecture notesAndrew NgSupervised learningLets start by talking about a few examples of supervised learning we have a dataset giving the living areas and prices of 47 housesfrom Portland, Oregon:Living area (feet2)Price (1000$s) can plot this data:50010001500200025003000350040004500 500001002003004005006007008009001000hous ing pricessquare feetprice (in $1000)Given data like this, how can we learn to predict the prices of other housesin Portland, as a function of the size of their living areas?1CS229 Winter 20032To establish notation for future use, we ll usex(i)to denote the input variables (living area in this example), also called inputfeatures, andy(i)to denote the output ortargetvariable that we are trying to predict(price). A pair (x(i), y(i)) is called atraining example, and the datasetthat we ll be using to learn a list ofmtraining examples{(x(i), y(i));i=1, .. , m} is called atraining set. Note that the superscript (i) in thenotation is simply an index into the training set, and has nothing to do withexponentiation.
for linear regression has only one global, and no other local, optima; thus gradient descent always converges (assuming the learning rate α is not too large) to the global minimum. Indeed, J is a convex quadratic function. Here is an example of gradient descent as it is run to minimize a quadratic function.
Domain:
Source:
Link to this page:
Please notify us if you found a problem with this document:
{{id}} {{{paragraph}}}