Ensemble Learning Algorithms With Python Flashcards

1
Q

WHAT ARE THE REASONS WE USE ENSEMBLE ALGORITHMS? P6

A

Reliability: they can reduce the variance of the predictions
Skill: Ensembles can achieve better performance than a single model

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

WHAT ARE THE CLASSES IN SCIKITLEARN.ENSEMBLE FOR USING BAGGING IN DIFFERENT TYPES OF PROBLEMS? P7

A

BaggingClassifier and BaggingRegressor

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

DOES RANDOM FOREST USE ALL THE FEATURES FOR MAKING ITS DECISION TREES? EXPLAIN HOW IT OPERATES P9

A

No, it randomly chooses a subset of features for each tree and considers only them at each split point

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

WHAT IS THE PARAMETER FOR CHOOSING THE NUMBER OF FEATURES FOR RANDOM FOREST TO CONSIDER AT EACH SPLIT CALLED?

A

max_features parameter

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

WHAT IS THE BASE MODEL FOR ADABOOST? WHAT ARE ITS PROPERTIES? P11

A

Decision tree (but since they are very short, they’re called decision stumps, they make a single decision on one input variable before making a decision)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

WHAT IS EXPECTED FROM THE MODEL WHEN WE ADD MORE ENSEMBLE MEMBERS? P11

A

New models attempt to correct the errors made by prior models already added to the ensemble. As such, the more ensemble members that are added, the fewer errors the ensemble is expected to make

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

WHAT ARE THE TWO MORE EFFICIENT IMPLEMENTATION OF GRADIENT BOOST CALLED? P13

A

XGBoost and LGBM

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

WHAT IS THE MAIN DIFFERENCE BETWEEN VOTING AND STACKING? P17

A

In stacking, a final estimator is used to learn how to best combine the predictions of the base models.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

WHICH MODELS ARE USUALLY USED AS THE FINAL ESTIMATOR IN STACKING ENSEMBLE? P17

A

Linear models: Linear regression and Logistic regression but can be any model in general

How well did you know this?
1
Not at all
2
3
4
5
Perfectly