การเลือกโมเดล: Ensemble Models

ฝึกตอบคำถามสัมภาษณ์ Machine Learning ด้วย Python

Lisa Stuart

Data Scientist

Bootstrapping

Bootstrapping

1 https://medium.com/@rrfd/boosting-bagging-and-stacking-ensemble-methods-with-sklearn-and-mlens-a455c0c982de
ฝึกตอบคำถามสัมภาษณ์ Machine Learning ด้วย Python

Random Forest

ป่าไม้

1 https://www.sca.com/en/about-us/our-forest/
ฝึกตอบคำถามสัมภาษณ์ Machine Learning ด้วย Python

Gradient Boosting

Gradient Boosting

1 https://blog.bigml.com/2017/03/14/introduction-to-boosted-trees/
ฝึกตอบคำถามสัมภาษณ์ Machine Learning ด้วย Python

RF vs GB

พารามิเตอร์ Random Forest Gradient Boosting
n_estimators 10 100
criterion gini (or entropy) friedman_mse
max_depth None 3
learning_rate N/A 0.1
1 https://scikit-learn.org/stable/modules/classes.html#module-sklearn.ensemble
ฝึกตอบคำถามสัมภาษณ์ Machine Learning ด้วย Python

ฟังก์ชัน

ฟังก์ชัน ค่าที่คืนกลับ
sklearn.ensemble.RandomForestClassifier Random Forest
sklearn.ensemble.GradientBoostingClassifier Gradient Boosted Model
sklearn.metrics.accuracy_score ความแม่นยำของโมเดล
sklearn.metrics.confusion_matrix(y_test,y_pred) confusion matrix
sklearn.metrics.precision_score(y_test,y_pred) precision
sklearn.metrics.recall_score(y_test,y_pred) recall
sklearn.metrics.f1_score(y_test,y_pred) f1 score
ฝึกตอบคำถามสัมภาษณ์ Machine Learning ด้วย Python

มาฝึกกันเถอะ!

ฝึกตอบคำถามสัมภาษณ์ Machine Learning ด้วย Python

Preparing Video For Download...