Start Contacting machine learning

Source: Internet
Author: User

There was no basis, and a little bit would be recorded here.

The square distance of the model prediction value to the real value can be used as the basis for filtering the correct model.

def error (F,x,y) {

return sum ((f (x)-y) **2)

}

F (x) is the model prediction value and Y is the actual value. If the model predicts a value equal to the actual value (an extremely good effect) then the difference is 0. The square is to take positive (error has positive negative), equivalent to the meaning of absolute value.

In multiple models, the smaller the error indicates that the model is closer to the actual data, but only as a basis for the filtering model, and based on other conditions.


Installation Key points:

Keep only one copy of the installation file, or it will cause a compilation error to be randomly referenced.

Mac comes with and Python under/system/library/frameworks/python.framework, while downloaded packages are typically installed into

/library/frameworks/python.framework/, so should first sudo ln-s/system/library/frameworks/python.framework/library/ Frameworks/python.framework

Only one installation is guaranteed. If you delete/system/library/frameworks/python.framework and then put your/library/frameworks/python.framework link past, in addition to the 2.7,

Also need the previous old version, the system will be dependent on the old version.

Download dmg file after installation, configure Export Pythonpath=/system/library/frameworks/python.framework/versions/2.7/extras/lib/python

Download scikit-learn-0.14.1.tar.gz for Mac version

After extracting the scikit-learn-0.14.1, go to the directory directly sudo python setup.py install.

In Eclipse, add the Sklearn to forced builtins manually.


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.