QUESTION 8 OF 10

How do you avoid leakage when training a stacking model?

Reveal the answer and explore the explanation.

08
Medium

How do you avoid leakage when training a stacking model?

Answer
Answer

Trains a meta-model on predictions of base estimators, typically out-of-fold.

Practical example

Combine tree and linear model predictions using a second-level model.

Reference: Further reading ↗

Last 30 min revisionHigh-yield interview Q&As