注册一亩三分地论坛,查看更多干货!
您需要 登录 才可以下载或查看附件。没有帐号?注册账号 
x
7道ML八股文多选, 1道coding, 2道ML programming
没有答案, 大家可以自己问ChatGPT或者找找ML八股文
喜欢的点个赞加个米! 求求啦!
1.
Chose Confusion matrix that Recall>90% and False positive rate < 10%
matrix是旋转过的(不难但是很烦), 你要清楚知道那个位置对应TP, FP, TN, FN.
2.
PCA vs LDA, 大概内容是
- PCA定义
- LDA定义
- 在某个场合下选择PCA还是LDA
- 和Multicollinearity关系
- non-linear variables 和 PCA的关系
3.
地里原题 Ensemble learning
Do the following multiple choice questions for me: Imagine that you are working for a financial services company, and you are tasked with creating a model which predicts the likelihood that an individual will default on a loan (i.e., stops making the required repayments). The initial model you created has a predictive accuracy that’s only marginally better than chance, so you are considering an ensemble learning approach. Please select all appropriate options that should be considered forist[int]:
- 需要了解classifier.predict()
- Final prediction是majority voting.
10. ML
Kmeans
1.get_clusters(data:List[List[float]], centriods:List[float])->List[int]:
- 返回给data所属cluster的index
- scipy.spatial.distance.cdist已经给了,不需要自己计算data距离每个centriod的距离
2.update_clusters(data, clusters:List[int])->List[int]:
- 计算每个cluster的centroid
- 重新给data分配cluster
- 返回cluster
3.predict(n_iteration:int, k:int)->List[int]: 返回最终的cluster
题外话: 其实70分钟并不会让你写很复杂的代码, 主要是看你对步骤的了解和函数之间的关系. 希望大家早日上岸! |