Machine Learning
Machine Learning
Example 1:
Example 2:
Hypothesis function
(a) Regression - Given a picture of a person, we have to
predict their age on the basis of the given picture
Cost Function
(b) Classification - Given a patient with a tumor, we have to we'll define something called the cost function,
predict whether the tumor is malignant or benign. this will let us figure out how to fit the best possible straight
line to our data.
Unsupervised Learning
Example:
Now for the purpose of illustration in the rest of this video The graph above minimizes the cost function as much
I'm not actually going to use these sort of 3D surfaces to
as possible and consequently, the result of θ1 and θ0 ,
show you the cost function J, instead I'm going to use
contour plots. Or what I also call contour figures. tend to be around 0.12 and 250 respectively. Plotting
those values on our graph to the right seems to put
our point in the center of the inner most 'circle
A contour plot is a graph that contains many contour lines.
A contour line of a two variable function has a constant
value at all points of the same line. An example of such a
graph is the one to the right below.
Gradient Descent
Multiple Features
The method to make gradient descent faster
Polynomial regression
If number of features are less than 1000 use normal eqn but
if number of features are greater than 1000 use gradient
descent
Gradient descent algorithm