Question 8 of 10Pro Only

What is cross-validation, and why is it preferred over a simple train-test split? Explain k-fold cross-validation and when you would use different values of k.

Sample answer preview

Cross-validation is a resampling technique used to evaluate machine learning models and tune hyperparameters. It provides more reliable performance estimates than a single train-test split by using the data more efficiently.

cross-validationk-foldstratifiedleave-one-outhyperparameter tuningvariance

Unlock the full answer

Get the complete model answer, key points, common pitfalls, and access to 9+ more AI/ML Engineer interview questions.

Upgrade to Pro

Starting at $19/month • Cancel anytime