机器学习 笔记¶
1. Intro¶
Classification¶
- Supervised learning
- Unsupervised learning
- Rainforced learning
Formation of supervised learning¶
given \(x\), predict \(y\) . We called \(x\) as instance, \(y\) as lable. We need to get a clasifier \(f: x\to y\) ,and we have the null assumption:
- collect training data \((x,y)^n\)
- train a classifier \(\hat{f}\) based on \((x,y)^n\)
- predict on $x_{n+1}\to \hat{f}( n+1), \cdots $
we can evaluate the classifier by
we can define the most accurate classifier Bayes classifier
Consider 3 things:
-
Representations:
-
DeepNN
-
Linear function
-
Decision tree
-
Optimization
given training data \((x_{i},y_{i})^n\) , define training error
$$ \mathcal{P}S (y\neq \hat{f}( x ) ) = \frac{1}{n}\sum_n I\qty[ y ) ] $$}\neq \hat{f}( x_{i
where training set \(S = ( x_{i},y_{i})^n\), identifier function \(I[ \cdots ]\) means if the content is true, then return \(1\); else are \(0\).
- Generalization
Generalization gap define as the minus
$$ \mathcal{P}( Y\neq \hat{f}( x ) ) - \mathcal{P}_S( Y\neq \hat{f}( x ) ) $$
this is intend to prevent overfitting.
2. Basic Prob Inequalities¶
Markov Ineq¶
for \(X>0\), the upper bound of tail probability, using 1st-order moment (\(E( X)\))
Proof: define \(A:{ X>k}\), obviously
Chubyshev Ineq¶
the upper bound of head&tail probability, using 2rd-order moment (\(\sigma\))
easily prove from Markov ineq
General case¶
if we have the r-order moment of a set of random varibles, we got
Very General case¶
we have the moment geometry func
we have the most accurate estimation