FlashKeepers

Machine Learning · College · College and University

ML III: Decision Trees and Ensembles

Decision tree splitting criteria, random forests, bagging, boosting, gradient boosting, XGBoost and feature importance.

About this set

40 basic cards for College Machine Learning. It opens with "What is Gini impurity and what value indicates a pure node?" and "How does entropy-based splitting differ from Gini-based splitting?". Study it alongside the other College sets below.

40 cards · basic cards · AI-written, checked twice. Edit anything.

Study this set free Look inside first Get FlashKeepers for iPhone

Opens in your browser, no account. Get the iPhone and iPad app · Android app

What is Gini impurity and what value indicates a pure node?
Show answerA measure of node purity: Gini = 1 - sum(p_i squared) for each class probability p_i. Value 0 means pure (all samples of one class).
How does entropy-based splitting differ from Gini-based splitting?
Show answerEntropy (H = -sum(p_i*log(p_i))) penalizes impurity logarithmically, while Gini is quadratic. Entropy often yields deeper trees; both are valid criteria.
What does information gain (IG) measure in a tree split?
Show answerThe reduction in impurity from a split: IG = impurity(parent) - weighted average impurity(children). Higher IG indicates a better split.
Why is gain ratio sometimes preferred over information gain?
Show answerInformation gain biases toward high-cardinality features (many unique values). Gain ratio normalizes by split entropy, favoring more balanced splits.
What is variance reduction splitting and when is it used?
Show answerA splitting criterion for regression trees; chooses the split that minimizes the weighted sum of variance in child nodes.
Name two common stopping criteria for growing a decision tree.
Show answerMaximum tree depth and minimum samples per leaf (or minimum samples to split). Both prevent overfitting and ensure node representativeness.
What does pruning accomplish in decision tree learning?
Show answerRemoves branches after tree growth to reduce overfitting. A pruned tree often generalizes better despite lower training accuracy.
How does max_depth control the bias-variance tradeoff?
Show answerLower max_depth increases bias, decreases variance. Higher max_depth decreases bias, increases variance and overfitting risk.
What does min_samples_split control?
Show answerThe minimum number of samples required in a node to attempt a split. Prevents tiny nodes from splitting and reduces overfitting.
Explain the min_samples_leaf hyperparameter.
Show answerThe minimum number of samples required in a leaf node. Ensures every terminal node represents sufficient data and prevents noise fitting.
What is bagging (bootstrap aggregating)?
Show answerA meta-algorithm training multiple models on random bootstrap samples of data, then averaging predictions. Primarily reduces variance.
What is a bootstrap sample?
Show answerA random sample of size n drawn with replacement from n original data points. Some points appear multiple times; others not at all.
Define out-of-bag (OOB) error in bagging.
Show answerError computed on samples not included in a given bootstrap sample. Used to estimate generalization error without a separate test set.
How do random forests differ from bagging?
Show answerRandom forests subsample features at each split in addition to subsampling rows. Feature subsampling decorrelates trees, reducing ensemble variance further.
Why does feature subsampling in random forests matter?
Show answerIt decorrelates individual trees. If one feature dominates, each tree would use it; feature subsampling forces diversity, making the ensemble stronger.

25 more cards in the app

Study this set free