Machine learning Note (ii)-from Andrew Ng's instructional video

Source: Internet
Author: User

Omit the use of octave end, later use to see it

Week Three:

Logistic Regression:

For 0-1 categories

Hypothesis representation:

: Sigmoid function or Logistic function

Decision Boundary:

Theta's Transpose * small x>=0 is boundary

May:non-linear decision boundaries, constructing the polynomial of X

Cost function:

Simplified cost function and gradient descent:

Because Y has only two values, merging:

To find the least biased guide:

(The denominator should be ignored)

Advanced Optimization:

Conjugate gradient,bfgs,l-bfgs (Inquiry learning)

Multi-Class Classification:one-vs-all:

Once the logistic regression classification is used for each class, after determining the parameters, the category of Max is calculated: Called One-vs-all (a one-to-many method).

Regularization:the Problem of Overfitting

Overfiting:reduce number of features or regularization

Linear regression:

Gradient Descent:

Normal equation:

regularized Logistic regression:like linear Regression,add extra in J (theta)

Attention: Many regular items start from 1 and do not punish for 0.

Machine learning Note (ii)-from Andrew Ng's instructional video

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.