The algorithm of flowing water, the loss function of/mle

Source: Internet
Author: User

Machine learning algorithm can be said that many, if rote, can only remember the derivation process and steps, after a period of time can not remember, only vaguely remembered some shadow. Therefore, we should find some general methods of the algorithm to understand the idea of the algorithm and the derivation process.

I think that the maximum likelihood estimation and loss function, which is the universal frame of machine learning algorithm, is the key to mastering the machine learning algorithm.

Below, use the actual algorithm to confirm the power of the two keys.

1.Linear Regression. Can be translated into the demand

The loss function is minimized to solve the parameter θ.

Then, the gradient descent method is used to solve the θ effectively. Besides the gradient descent tool, there are some important tools of quasi-Newton method and Lagrange multiplier method.

2.Logistic Regression. With the model

, the maximum likelihood function is obtained first:

Then we take the logarithm of this likelihood function and get

 

In practice, a minus sign is usually added to the front, and the minimum is changed.

3.SVM

The algorithm of flowing water, the loss function of/mle

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.