Holding out data to evaluate generalization.
- Category: Machine Learning — part of the Machine Learning Tutorial on GoCareerGo
- Read the short summary above, then check the linked docs for full syntax/behaviour
- Interview tip: be ready to explain "Train-Test Split" in one sentence, then back it up with a tiny example
# Train-Test Split — minimal example
# See scikit-learn / the linked framework docs for the exact API.Tip
Quick recall: "Train-Test Split" — holding out data to evaluate generalization.