-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathML_note.tex
More file actions
87 lines (78 loc) · 3.16 KB
/
ML_note.tex
File metadata and controls
87 lines (78 loc) · 3.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
\documentclass{thesis/PatternRecognition}
\usepackage{style/scnu}
\usepackage{style/mynewcommand}
\usepackage{listings}
\usepackage{xcolor}
\usepackage{color}
\usepackage{multirow}
\usepackage{booktabs}
\usepackage{enumerate}
\usepackage{amsmath}
\graphicspath {{figures/}}%The folder containing pictures
\captionsetup{font={footnotesize}}
\definecolor{darkgreen}{rgb}{0,0.6,0}
\definecolor{underground}{rgb}{0.949,0.949,0.949}
\definecolor{strcolor}{rgb}{0.8,0,0.8}
\colorlet{stringcolour}{red!60!black}
\colorlet{keywordcolour}{magenta!90!black}
\colorlet{exceptioncolour}{yellow}
\colorlet{commandcolour}{blue!60!black}
\colorlet{numpycolour}{blue!60!green}
\colorlet{literatecolour}{magenta!90!black}
\colorlet{promptcolour}{green!50!black}
\colorlet{specmethodcolour}{violet}
\colorlet{commentcolour}{green!50!black}
%\numberwithin{eqnarray}{section}
\begin{document}
\lstset
{
language=python,
numbers=left,
numberstyle=\color{blue}, %代码编号
%stepnumber=0, %代码编号步长
keywordstyle=\color{keywordcolour}\bfseries, %关键字颜色
commentstyle=\color{commentcolour}, %注释颜色
%frame=shadowbox, %边框
breaklines=true, %自动折行
stringstyle=\color{stringcolour}, %字符串颜色
backgroundcolor=\color{underground}, %背景色
xleftmargin=0cm,xrightmargin=0cm, aboveskip=1cm, %设置边距
basicstyle=\small, %基本字体字号
rulesepcolor=\color{red!20!green!20!blue!20},
flexiblecolumns=true,
breakautoindent=true,
%python特有关键字
emph={and,break,class,continue,def,yield,del,elif ,else,%
except,exec,finally,for,from,global,if,import,in,%
lambda,not,or,pass,print,raise,return,try,while,assert,with},
emphstyle=\color{blue}\bfseries,
emph={[2]True, False, None},
emphstyle=[2]\color{keywordcolour},
emph={[3]object,type,isinstance,copy,deepcopy,zip,enumerate,reversed,list,len,dict,tuple,xrange,append,execfile,real,imag,reduce,str,repr},
emphstyle=[3]\color{commandcolour},
emph={Exception,NameError,IndexError,SyntaxError,TypeError,FileNotFoundError,ValueError,OverflowError,ZeroDivisionError},
emphstyle=\color{exceptioncolour}\bfseries ,
emph={[4]ode, fsolve, sqrt, exp, sin, cos,arctan, arctan2, arccos, pi, array, norm, solve, dot, arange, , isscalar, max, sum, flatten, shape, reshape, find, any, all, abs, plot, linspace, legend, quad, polyval,polyfit, hstack, concatenate,vstack,column_stack,empty,zeros,ones,rand,vander,grid,pcolor,eig,eigs,eigvals,svd,qr,tan,det,logspace,roll,min,mean,cumsum,cumprod,diff,vectorize,lstsq,cla,eye,xlabel,ylabel,squeeze},
emphstyle=[4]\color{numpycolour},
emph={[7]range},
emphstyle={[7]\color{keywordcolour}\bfseries},
emph={[8]1, 2, 3, 4, 5, 6, 7, 8, 9, 0},
emphstyle={[8]\color{keywordcolour}\bfseries},
escapeinside=``
}
\input{file/abstract}
\input{information/info}
\tableofcontents %输出目录
\newpage
\input{file/Linear_Regression_and_gradient_decent}
\input{file/logistic}
\input{file/LDA}
\input{file/classification_problems}
\input{file/exponential_family_distribution_and_generalized_linear_regression}
\input{file/tree}
\input{file/SVM}
\input{file/learning_theory}
\input{file/Regularization_and_model_selection}
\input{file/Bayesian}
\input{file/appendix}
\end{document}