DOC PREVIEW
CMU CS 10601 - Problem

This preview shows page 1-2-3-4 out of 12 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 12 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 12 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 12 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 12 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 12 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

Problem Set 210-601 Machine LearningMATLAB tips• Conventional wisdom: MATLAB hates loops– May be less of an issue with most recent versions– Ideally use matrix operations whenever possible• Examples:MATLAB tips• Conventional wisdom: MATLAB hates loops– May be less of an issue with most recent versions– Ideally use matrix operations whenever possible• Examples:MATLAB tips• Conventional wisdom: MATLAB hates loops– May be less of an issue with most recent versions– Ideally use matrix operations whenever possible• Examples:MATLAB tips• Conventional wisdom: MATLAB hates loops– May be less of an issue with most recent versions– Ideally use matrix operations whenever possible• Examples:MATLAB tips• Conventional wisdom: MATLAB hates loops– May be less of an issue with most recent versions– Ideally use matrix operations whenever possible• Examples:Logistic regression implementation• In my code that solves for w, the only loop is the one that iterates until the weight vector has converged• My code converges in ~40k iterations (35.6s) when– lambda = 0– w and v initialized to 1– k = 0.5• Can use ‘tic’ and ‘toc’ to time your codeLogistic regression implementation• Tracking the likelihood and norm of the difference in weight vectors at every iteration can be informative• L1 regularization, lambda = 50 500 1000 1500 2000 2500 3000 3500 4000 45000.9811.021.041.061.081.11.121.141.161.18x 10-3Logistic regression implementation• Tracking the likelihood and norm of the difference in weight vectors at every iteration can be informative• L1 regularization, lambda = 50 20 40 60 80 100 120 14011.0051.011.0151.021.0251.031.035x 10-3Logistic regression implementation• To test your code, observe what happens to the weight vector as you increase lambda-100 -80 -60 -40 -20 0 20 40 60 800510152025303540Bayesian linear regressionImage from Bishopxwwy10No observations1 observation2 observations20 observationsWe also discussed…• Why the Gaussian prior on w in Bayesian linear regression is a conjugate prior, as well as how to compute the posterior• How to compute information gain in a decision tree with continuous


View Full Document

CMU CS 10601 - Problem

Documents in this Course
lecture

lecture

40 pages

lecture

lecture

36 pages

Lecture

Lecture

31 pages

Review

Review

32 pages

Lecture

Lecture

11 pages

Lecture

Lecture

18 pages

Notes

Notes

10 pages

Boosting

Boosting

21 pages

review

review

21 pages

review

review

28 pages

Lecture

Lecture

31 pages

lecture

lecture

52 pages

Review

Review

26 pages

review

review

29 pages

Lecture

Lecture

37 pages

Lecture

Lecture

35 pages

Boosting

Boosting

17 pages

Review

Review

35 pages

lecture

lecture

32 pages

Lecture

Lecture

28 pages

Lecture

Lecture

30 pages

lecture

lecture

29 pages

leecture

leecture

41 pages

lecture

lecture

34 pages

review

review

38 pages

review

review

31 pages

Lecture

Lecture

41 pages

Lecture

Lecture

15 pages

Lecture

Lecture

21 pages

Lecture

Lecture

38 pages

Notes

Notes

37 pages

lecture

lecture

29 pages

Load more
Download Problem
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Problem and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Problem 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?