Presentation is loading. Please wait.

Presentation is loading. Please wait.

ECE 5984: Introduction to Machine Learning Dhruv Batra Virginia Tech Topics: –Regression Readings: Barber 17.1, 17.2.

Similar presentations


Presentation on theme: "ECE 5984: Introduction to Machine Learning Dhruv Batra Virginia Tech Topics: –Regression Readings: Barber 17.1, 17.2."— Presentation transcript:

1 ECE 5984: Introduction to Machine Learning Dhruv Batra Virginia Tech Topics: –Regression Readings: Barber 17.1, 17.2

2 Administrativia HW1 –Due on Sun 02/15, 11:55pm –http://inclass.kaggle.com/c/VT-ECE-Machine-Learning-HW1http://inclass.kaggle.com/c/VT-ECE-Machine-Learning-HW1 Project Proposal –Due: Tue 02/24, 11:55 pm –<=2pages, NIPS format HW2 –Out today –Due on Friday 03/06, 11:55pm –Please please please please please start early –Implement linear regression, Naïve Bayes, Logistic Regression (C) Dhruv Batra2

3 Recap of last time (C) Dhruv Batra3

4 Learning a Gaussian Collect a bunch of data –Hopefully, i.i.d. samples –e.g., exam scores Learn parameters –Mean –Variance (C) Dhruv Batra4

5 MLE for Gaussian Prob. of i.i.d. samples D={x 1,…,x N }: Log-likelihood of data: Slide Credit: Carlos Guestrin(C) Dhruv Batra5

6 Your second learning algorithm: MLE for mean of a Gaussian What’s MLE for mean? Slide Credit: Carlos Guestrin(C) Dhruv Batra6

7 Learning Gaussian parameters MLE: (C) Dhruv Batra7

8 Conjugate priors –Mean: Gaussian prior –Variance: Inverse Gamma or Wishart Distribution Prior for mean: Slide Credit: Carlos Guestrin(C) Dhruv Batra8 Bayesian learning of Gaussian parameters

9 MAP for mean of Gaussian Slide Credit: Carlos Guestrin(C) Dhruv Batra9

10 Plan for Today Regression –Linear Regression –Connections with Gaussians (C) Dhruv Batra10

11 New Topic: Regression (C) Dhruv Batra11

12 1-NN for Regression Often bumpy (overfits) (C) Dhruv Batra12Figure Credit: Andrew Moore

13 (C) Dhruv Batra13Slide Credit: Greg Shakhnarovich

14 (C) Dhruv Batra14Slide Credit: Greg Shakhnarovich

15 (C) Dhruv Batra15Slide Credit: Greg Shakhnarovich

16 Linear Regression Demo –http://hspm.sph.sc.edu/courses/J716/demos/LeastSquares/L eastSquaresDemo.htmlhttp://hspm.sph.sc.edu/courses/J716/demos/LeastSquares/L eastSquaresDemo.html (C) Dhruv Batra16

17 (C) Dhruv Batra17Slide Credit: Greg Shakhnarovich

18 (C) Dhruv Batra18Slide Credit: Greg Shakhnarovich

19 (C) Dhruv Batra19Slide Credit: Greg Shakhnarovich

20 (C) Dhruv Batra20Slide Credit: Greg Shakhnarovich

21 (C) Dhruv Batra21Slide Credit: Greg Shakhnarovich

22 (C) Dhruv Batra22Slide Credit: Greg Shakhnarovich

23 (C) Dhruv Batra23Slide Credit: Greg Shakhnarovich

24 Why sum squared error??? Gaussians, Watson, Gaussians… But, why? 24(C) Dhruv Batra

25 25Slide Credit: Greg Shakhnarovich

26 MLE Under Gaussian Model On board (C) Dhruv Batra26

27 Is OLS Robust? Demo –http://www.calpoly.edu/~srein/StatDemo/All.htmlhttp://www.calpoly.edu/~srein/StatDemo/All.html Bad things happen when the data does not come from your model! How do we fix this? (C) Dhruv Batra27

28 Robust Linear Regression y ~ Lap(w’x, b) On board (C) Dhruv Batra28


Download ppt "ECE 5984: Introduction to Machine Learning Dhruv Batra Virginia Tech Topics: –Regression Readings: Barber 17.1, 17.2."

Similar presentations


Ads by Google