楼主: 牧moon
跳转到指定楼层
上一主题 下一主题
收起左侧

DS跳槽准备+打卡

 
🔗
cherry-nancy 2019-1-12 07:14:40 | 只看该作者
全局:
佩服! 楼主第一段话真是说到心里面去了,我现在工作也是杂,不深。也是想深入系统的学习点啥。
感谢楼主分享学习到的知识,这点真是很好,会总结,会讲解了才是真的学到了。也方便了大家。
加油!
回复

使用道具 举报

🔗
 楼主| 牧moon 2019-1-13 08:23:59 | 只看该作者
全局:
cherry-nancy 发表于 2019-1-12 07:14
佩服! 楼主第一段话真是说到心里面去了,我现在工作也是杂,不深。也是想深入系统的学习点啥。
感谢楼主 ...
.
共勉共勉!写出来我自己也梳理一下,更清晰。
回复

使用道具 举报

🔗
 楼主| 牧moon 2019-1-13 08:25:02 | 只看该作者
全局:
momo19157 发表于 2019-1-11 23:33
纯粹好奇,楼主刚入职DS,为什么就要申请OPT extension了?
. ----
“刚入职一年,非互联网公司的DS”,我应该断句的。。。
回复

使用道具 举报

🔗
 楼主| 牧moon 2019-1-13 08:27:30 | 只看该作者
全局:
雪梨MM 发表于 2019-1-12 00:09
佩服楼主,向楼主学习!

谢谢!共勉共勉
回复

使用道具 举报

🔗
 楼主| 牧moon 2019-1-13 08:28:04 | 只看该作者
全局:
ciciandsnow 发表于 2019-1-12 02:52
同准备中~佩服楼主,向你学习~
. 1point3acres
谢谢鼓励!加油,共勉。
回复

使用道具 举报

🔗
 楼主| 牧moon 2019-1-13 10:34:23 | 只看该作者
全局:
01/11/19 第六天
01/12/19 第七天

因为11号没有看完XGboost的slides,所以就今天看完一起写了
01/11/19
More for Ensemble:
Error(H) = Avg(Error(h)) - Avg(Ambiguity(h))-baidu 1point3acres
A beautiful formula for regression, doesn’t apply for classification, can not be applied in practice. But it shows a general idea. A set of base learners with high accuracy and diversity can be combined into a good ensemble.
How to measure diversity?
Contingency table between two classifiers. K-error plot
How to increase diversity?
Sample bootstrapping(样本扰动): applies to decision trees and neural nets (adboost and RF), but doesn’t apply to models that are not sensitive to data, linear classifiers, SVM, kNN, Naive bayes.
feature bootstrapping(属性扰动): applies to datasets with duplicate features or un-useful features.

Boosting
In general, boosting reduce bias of weak learners and bagging reduce variance.
Adaboost (adaptive boosting)
Additive model
Update the weight of base learner (alpha) and samples (Dt) based on errors in every iteration.
The formula for alpha and Dt is proven to minimizes the exponential loss, which has an equivalent behavior of log-loss.
但是我觉得对于alpha和Dt公式的解释,这可能是作者发表Adboost后为了解释其behavior“反推”出的一套理论(完全瞎猜,科研很多先现象后反推理论,写教科书上大多是理论倒出现象)。周志华老师书中也提到,(即使费了这么大劲--这是内心活动吧)这一套理论并不能够解释Adboost一个现象;the generalization can be further improved even thought the training error reduces to zero. 后来发展的margin theory解释了这一现象,但一直存在争论。
-baidu 1point3acres
Re-weighting vs. re-sampling: two approaches to generate ht(x) after Dt is updated. The difference is that if the accuracy of ht(x) is lower than 0.5, boosting would stop early in re-weighting approach. Re-sampling can “resume” it.
回复

使用道具 举报

🔗
 楼主| 牧moon 2019-1-13 10:40:04 | 只看该作者
全局:
01/12/19
关于XGboost和GBDT还需要再一天,可能会有一些理解误差。

XGboost
https://homes.cs.washington.edu/~tqchen/pdf/BoostedTree.pdf

.google  и以下全是基于上面的slides
XGboost is not just an algorithm, it is a software or library that offers a distributed gradient boosting models. The model in XGboost is essentially regularized gradient boosting. . check 1point3acres for more.
Key points: .--
1. Add a regularization term to the loss function to reduce overfilling
2. The regularization term include # of leaves, l2 norm of leaf score, kind of equivalent to pruning.
3. Use a function f_t(x) to represent the mapping from an instance to a leaf score in decision tree generated at t iteration. (the loss of this function should be related to information gain???).
4. Gradient boosting finds the function f_t(x) at each iteration of Ensemble, instead of weights/parameters found by gradient descent, to minimize the loss function because the Ensemble model is an additive model of base models f_t(x).
5. Use Taylor expansion to simplify the loss function to quadratic function of f_t(x), the coefficients of f_t(x) and f_t(x)^2 are related to true y and predicted y using f_t-1(x), which are represented as g(y, y_pred_t-1) and h(y, y_pred_t-1) in the slides. Apparently, the optimization depends on g and h.
6. Then a very good question was asked in the slides, also a question from me: “why spending so much efforts to derive the objective, why not just grow trees…”. Check out the slides for answers.
7. The loss/objective function can be further transformed, and g and h can be used to compute a structure score for a tree. The tree is grown according to the structure score as information gain
. 1point 3acres
Procedure:
Compute g and h based on existing Ensemble model f_t-1(x). Any loss function can be customized in g and h
A tree is grown based on Structure score, not Gini index or Entropy?-baidu 1point3acres
A learning rate is used to add the new tree to the existing model.

待解决:
Gradient boosting decision tree (GBDT)
What is the difference?
书中:”此派理论认为Adaboost实质上是基于加性模型以类似牛顿迭代法来优化指数损失函数。受此启发,通过将迭代优化过程替换为其他优化方法,产生了gradientbossting。。。”。
. Waral dи,
Gradient boosting machine (GBM): base learner doesn’t have to be a tree, it can be a linear classifier.
回复

使用道具 举报

🔗
Grace1226 2019-1-15 04:23:14 | 只看该作者
全局:
马住,以后日常来看看哈哈~
回复

使用道具 举报

🔗
 楼主| 牧moon 2019-1-15 16:42:44 | 只看该作者
全局:
这两天忙着准备一些工作的事情,没腾出时间继续看书和复习。明天时间也很紧张,但一定要继续,可以将任务减少一些。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册账号
隐私提醒:
  • ☑ 禁止发布广告,拉群,贴个人联系方式:找人请去🔗同学同事飞友,拉群请去🔗拉群结伴,广告请去🔗跳蚤市场,和 🔗租房广告|找室友
  • ☑ 论坛内容在发帖 30 分钟内可以编辑,过后则不能删帖。为防止被骚扰甚至人肉,不要公开留微信等联系方式,如有需求请以论坛私信方式发送。
  • ☑ 干货版块可免费使用 🔗超级匿名:面经(美国面经、中国面经、数科面经、PM面经),抖包袱(美国、中国)和录取汇报、定位选校版
  • ☑ 查阅全站 🔗各种匿名方法

本版积分规则

>
快速回复 返回顶部 返回列表