Machine Learning Algorithm Diagnostics

Source: Internet
Author: User
First, why do machine learning algorithm diagnosis?

By testing the machine learning algorithms that are trained, you can see how well the algorithm works and what is not, and how best to improve the performance of the algorithm to get the guidance of the knowledge.

Diagnostic algorithms usually take time to achieve, but it would be better to make less detours and take advantage of time.

Second, how to diagnose the algorithm?

The simplest is to divide the data set into training sets and test sets. Then use the training set to train the model and use the test set to evaluate the model's performance.

A simple example:

1) Linear regression model

Use the training set to get the model, then use the test set for testing, and use the cost function without normalization to calculate the error

2) Logistic regression model

Use the training set to get the model, and then use the test set for testing,

There are two ways to calculate errors on a test set:

A) Use cost functions without normalization to calculate errors

b) Mis-classification error (0/1 classification error)

Machine Learning Algorithm Diagnostics

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.