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

DS跳槽准备+打卡

 
🔗
 楼主| 牧moon 2019-1-9 10:01:45 | 只看该作者
全局:
momo19157 发表于 2019-1-8 23:54
请问楼主是看什么资料?觉得你说的这些东西普通的书都没讲这么细
.--
这些都是板上的面经里的问题和答案,有的我自己google了一下,能找到教科书的最好,找不到的看了wiki啊statsoverflow啊知乎啊个人blog,cross-check之后总结一些的。
回复

使用道具 举报

🔗
meow1234 2019-1-10 04:57:46 | 只看该作者
全局:
pca要时时刻刻在脑子里。求联系楼主,同打算找ds工作,看了楼主的帖子,有动力了。同工作快一年,求脱坑。
回复

使用道具 举报

🔗
elvenxzy 2019-1-10 06:55:43 | 只看该作者
全局:
同准备跳槽,楼主写的很好,希望能一起努力
回复

使用道具 举报

🔗
 楼主| 牧moon 2019-1-10 17:20:41 | 只看该作者
全局:
01/10/19 第四天
看了周志华老师的《机器学习》第二章,复习了一些基本概念
Error: Training error/empirical error, generalization error, test error is an estimate of generalization error based on a test set. -baidu 1point3acres
Overfitting: 树叶必须有锯齿,
Underfitting:绿色的是叶子

Performance metrics
1. Mean squared error
2. Error rate(错误率), accuracy(精度)
3. Precision(查准率):预测的正例有多少真实的正例,预测例子的准度。比如,推荐系统要推荐的准,少打扰用户。预测的正例要很有把握,所以难免漏掉很多真实的正例,查全下降。
Recall(查全率):真实的正例有多少被预测为正例,真实例子的全面。比如,疾病或者逃犯要全面查到。宁可错杀一千不可放过一个,所以会预测很多的正例其实为负,准度下降。
PR curve:precision和recall是矛盾的.
F1 score: harmonic mean of precision and recall
F1-macro, F1-micro for multiple binary classifications: multiple training and test for binary classification, training with multiple datasets for binary classification, multi-class or multi-label classification.
4. TPR(真正例率) = recall
FPR(假正例率) = 1 - specificity,真实的负例有多少被预测为正例
ROC curve,AUC
Both ROC and PR curves are generated by sorting predicted probabilities of samples and using each value as a threshold. .google  и

Evaluation methods. check 1point3acres for more.
hold-out, cross-validation: 存在真实训练数据变少,以及测试数据和训练数据大小不同的问题
Leave-one-out: 几乎用了所有数据训练model
Bootstrapping: 新产生的数据与原训练数据分布有差别,适用于小数据难以划分。out-of-bag part for validation or test.
. 1point 3 acres
. 1point 3 acres
Generalization error = bias^2 + variance + noise^2. check 1point3acres for more.
Noise: 即使是拿到的数据y或者label,也许会是有noise的,这是这个问题的error下限
variance: 来源于训练数据的干扰,假设有m组训练数据,也就是可以训练m个model,对于一个新数据x,有m个f(x),得到均值avg-f(x)。从而,可以计算在一组训练数据上训练出的model的variance
bias:avg-f(x) - 真实y = avg-f(x) - (y - noise)
所以generalization(泛化)error又算法本身的拟合能力,对于数据干扰的抗性,和数据本身的真实度决定。

补充内容 (2019-1-11 16:33):. 1point3acres.com
日期错了,应该是9号
回复

使用道具 举报

🔗
 楼主| 牧moon 2019-1-10 17:23:07 | 只看该作者
全局:
elvenxzy 发表于 2019-1-10 06:55
同准备跳槽,楼主写的很好,希望能一起努力

努力,奋斗!
回复

使用道具 举报

🔗
 楼主| 牧moon 2019-1-10 17:23:56 | 只看该作者
全局:
meow1234 发表于 2019-1-10 04:57. 1point 3 acres
pca要时时刻刻在脑子里。求联系楼主,同打算找ds工作,看了楼主的帖子,有动力了。同工作快一年,求脱坑。
. 1point 3acres
欢迎一起讨论问题,好工作就是动力!
回复

使用道具 举报

🔗
 楼主| 牧moon 2019-1-11 16:36:34 | 只看该作者
全局:
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.
回复

使用道具 举报

🔗
momo19157 2019-1-11 23:33:18 | 只看该作者
全局:
纯粹好奇,楼主刚入职DS,为什么就要申请OPT extension了?
回复

使用道具 举报

🔗
雪梨MM 2019-1-12 00:09:33 | 只看该作者
全局:
佩服楼主,向楼主学习!
回复

使用道具 举报

🔗
ciciandsnow 2019-1-12 02:52:07 | 只看该作者
全局:
同准备中~佩服楼主,向你学习~
回复

使用道具 举报

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

本版积分规则

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