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)