"Machine Learning algorithm principles and programming Practices" study notes (i)

Source: Internet
Author: User
Tags ultraedit

Chapter I Fundamentals of machine learning

1.1 Programming languages and development environments

1.1.1 Python Installation (abbreviated)

1.2.2 Installation of the Python installation package: Optional option to install the Integration Pack Anaconda (slightly)

1.1.3 IDE Configuration and installation test

The IDE chooses the UltraEdit advanced text editor with the following configuration steps:

(1) Select "Advanced"--"User Tools" command, 1.4 shown.

Figure 1.5 Configuring UltraEdit Step 1

(2) Enter the parameters in 1.5, then click the "Apply button"

Figure 1.5 Configuring UltraEdit Step 2

(3) Set as shown in 1.6 and click the OK button

Figure 1.6 Configuring UltraEdit Step 3

Test the installation results by testing the code:

#Coding:utf-8#Filename:mytest1.pyImportNumPy as NP#Import NumPy Library fromNumPyImport*#Import NumPy LibraryImportMatplotlib.pyplot as Plt#test Data Set ———— two-dimensional listDataSet = [[1,2],[3,4],[5,6],[7,8],[9,10]]datamat= Mat (DataSet). T#Convert a dataset to a numpy matrix and go to rankPlt.scatter (datamat[0],datamat[1],c ='Red', marker ='o')#plot A data scatter plot#draw a straight line graphicX = Np.linspace ( -2,2,100)#generating straight-line data#establishing a linear equationY = 2.8*x+9plt.plot (x, y)#draw a line chartPlt.show ()#Show Drawing Effects

Figure 1.7 shows the execution effect

Source: "Machine learning algorithm principles and programming events learning experience" Zheng Jie

"Machine Learning algorithm principles and programming Practices" study notes (i)

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.