ML Andrew Ng Flashcards
what is the diff btwn function with single feautures and one with multipple feautures

How to drive Multi variate formual with Transpose and X

What is parameter ?
Theta is the parameter
How to fit the parameter (to obtain best one) in the hypothesis (prediction equation)
Using gradient descend
What is the cost function for both linear and mulytivariate feature

Gradient descend formula for both one variable and double

If you have a problem with multiple feautures , you should make sure those feautures have similar scales ….therefore
gradient descend will converge more easily
example of future scaling ranges

Gradient descent feauture scaling and normalization

example of feauture scaling

What is the job of gradient descent?
The job of gradient descent is to find the value of theta for you that hopefully minimizes the cost function J(theta).
How to know if gradient descent is working?
If the gradient descend is workng properly , then J(Q)
Should decreas after every iteration . If Gdecent is increasing , it means , it is not working
cheking gradient descent is working

Gradient Descent Learning Rate

To choose alpha or learning rate , use ?
0.001 , 0.01, 0.1,1… or u can go for 3 fold increase , 0.001 , 0.003,0.009..
what will happen if alpha is too small?
then the learning rate is will be slow
polynomial regression?

feautues and polynomial regression

What is normal equation

“What does the machine (? what is the machine here) actually learn?”
i.e. the statistical model
……Grew from the field of AI.
Machine Learning
Examples of where machine learning can be applied?
Database mining , application that we cannot program by hand( NLP , autonomous heli , computer vision) ,sel-customizing program(Netfliz , Amazon ,) , understanding human brain
not well defined , but a field of study that gives computers the ability to learn without without being explicitly programmed
Definition of ML , by Samuel
Well posed learning probelm , A computer program is said to learn from experience E with respect to some class of tasks T and performance measure P, it is performance at tasks in T, as measured by P , improves the expereince E.
Tom Michel. Example samule wrote a checkers playing program..had the program play 1000o games against itslef. E= 10000 examples , T is playing checkers , P if you win or not












