注册一亩三分地论坛,查看更多干货!
您需要 登录 才可以下载或查看附件。没有帐号?注册账号 
x
本帖最后由 anderson1234 于 2020-9-11 03:18 编辑
为了加米看面经,掏家底儿了。 都是Google, Amazon, MS,FB工程师们的讨论笔记。
求加精, 加米
很多公司需要feature engineering,
Overfitting可能来自三个方面:一个是来自Model的,一个是来自Data的,一个是对data的split不合适。
比如Training Set有时序的时候,split data沿着时间方向,就有可能出现overfitting,Data没有Split干净, 在学习的时候已经把Data包含进来了,
Data少会导致Overfitting , Noise多
Random forest比较容易overfitting;简单regression容易underfitting
Predict 某台机器什么时候坏,按时序分;predict 其他机器什么时候坏, 按照机器Split
如果按时序分,Model好坏取决于:新的机器&旧的机器的distribution是不是一样
If not:
1. 按机器分好
2. Normalization – 把两个不同的distribution做成相同的
使用Regression
ROC三条线:Training, CrossValidation, testing
有些时候,实际中Feature selection保证在300~500之间
实际中真正关心的是Generalization的power怎样
做case时,先用简单model做一下,看看效果,再上复杂model
Linear是一维, tree没有回路, Neural Network已经是网络
Tree没有feedback回去
Descriminative vs generative models
Joint probability vs conditional probability
有些结果Too good to be true
更复杂的model 使用更复杂的参数
AIC BIC 复杂度概念
Degree of freedom
L1, L2在面试时一定会被问
the Curse of Dimensionality 维度灾难
指数级增长
维度越低越容易estimate
Maximum likelihood estimation 与 overfitting
MLE is for Parameter Estimation
MLE用于做Parameter Estimation, 可能Overfitting, 比如linear regression
MLE和LinearRegression中cost function的关系 – in Chapter 3
[Q]: 1.5.5 Cost function是用来干什么的
衡量Fit得好不好
Penalty vs Cost Function
Cost Function包含Penalty Function
[InterviewQs]:
为什么Normal Equation是精确的最优解?
对称轴
当你去选择cost function或者error function的时候,MSE & MAE什么时候选择哪一个?优劣在哪?
A: 取决于Outlier偏离点
[课后]MAE vs MSE - https://www.quora.com/What-is-the-difference-between-squared-error-and-absolute-error
从一个圆里面Randomly取点,每个点被取的概率一样,怎么做?
转成极坐标 [怎么Randomly选半径r] 密度概率
F(r) = u
[Q] MAE, MSE
MAE = sum(|y- y_predicted|)/N
MSE = sum((y-y_predicted)^2)/N
Bagging:
https://en.wikipedia.org/wiki/Booststrap_aggregating
[Q]有没有什么model是可以没有overfitting?
[飞飞] Nearest Neighborhood
[Q]In [0, 1], to generate two random numbers, the expectation of the smaller one?
[课后]: http://www.vartang.com/2013/03/points-on-the-unit-interval/
留给以后的问题:
Linear regression和logistic regression推导
Bagging and boosting |