活跃农民
- 积分
- 484
- 大米
- 颗
- 鳄梨
- 个
- 水井
- 尺
- 蓝莓
- 颗
- 萝卜
- 根
- 小米
- 粒
- 学分
- 个
- 注册时间
- 2013-5-3
- 最后登录
- 1970-1-1
|
01/10/19 第五天
读了周志华老师《机器学习》,线性模型,决策树,集成模型,复习了如下概念和知识
多分类学习:multi-class classification
One vs. One, One vs. Rest, Many vs. Many. 1point 3 acres
几乎每种算法都可以output multi-class value吧(SVM怎么做?忘记了。。。),为何还需要这些?
Unbalanced data. ----
What we usually do is, h(x)/(1-h(x))>1, positive; otherwise, negative, the assumption is # of positive (m+) is equal to # of negative (m-)
Rescaling with m+/m-: assuming m+/m- in training set is the same as real data
Undersampling: don’t directly remove samples, underfitting, creating subsets for ensemble models, (EarlyEnsemble)
Oversampling: don’t directly replicate samples, overfitting, SMOTE
Decision tree: recursively generate nodes and queue features
1. Pruning has a bigger impact on performance than tree formation. Pruning can be based on validation accuracy.
Pre-pruning: greedy
post-pruning: more complex
2. Dealing with continuous value: sort, compute splitting values, choose one to maximize information gain, can be used again with a different splitting value
3. Dealing with missing value
Ensemble: . Χ
Usually, we would think an ensemble model is bounded by the worst and the best base learner. But it can be better if right base learners are combined together to compensate “disadvantage” for each other. The performance is boosted for weak learners. But in practice, use good base learners.
Ideally, if the assumption is met that errors of base learns are independent, the error of ensemble model decreases exponentially with the number of base learners. In reality, base learners can never be independent because of the same training set.
3. Bagging: train base learners in parallel (so scalable), voting or averaging
How to make them different from each other but not completely independent? Bootstrapping. The un-used samples, also called out-of-bag (OOB) samples, can be used as validation set to prune trees and early-stop training for neural net to avoid overfitting.
One special case of Bagging is Random Forest. Also bootstrapping features to create more difference between base trees. Mainly reduce variance of base trees to reduce generalization error. Decision tree tend to have low bias but high variance. The high variance means trees are quite different trained on different datasets. The difference may compensate errors for each other. |
|