Modelselectie: ensemblemodellen

Machine Learning-sollicitatievragen oefenen in 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-sollicitatievragen oefenen in Python

Random forest

Bos

1 https://www.sca.com/en/about-us/our-forest/
Machine Learning-sollicitatievragen oefenen in Python

Gradient Boosting

Gradient boosting

1 https://blog.bigml.com/2017/03/14/introduction-to-boosted-trees/
Machine Learning-sollicitatievragen oefenen in Python

RF vs GB

parameter Random Forest Gradient Boosting
n_estimators 10 100
criterion gini (of entropy) friedman_mse
max_depth None 3
learning_rate N.v.t. 0.1
1 https://scikit-learn.org/stable/modules/classes.html#module-sklearn.ensemble
Machine Learning-sollicitatievragen oefenen in Python

Functies

Functie retourneert
sklearn.ensemble.RandomForestClassifier Random Forest
sklearn.ensemble.GradientBoostingClassifier Gradient Boosted Model
sklearn.metrics.accuracy_score nauwkeurigheid van getraind model
sklearn.metrics.confusion_matrix(y_test,y_pred) verwarringsmatrix
sklearn.metrics.precision_score(y_test,y_pred) precisie
sklearn.metrics.recall_score(y_test,y_pred) recall
sklearn.metrics.f1_score(y_test,y_pred) f1-score
Machine Learning-sollicitatievragen oefenen in Python

Laten we oefenen!

Machine Learning-sollicitatievragen oefenen in Python

Preparing Video For Download...