cross-validation vs train test split ( 1 mark)
Cross-validation extends this approach to model scoring (or “model validation.”) Compared to train_test_split, cross-validation gives you a more reliable measure of your model’s quality, though it takes longer to run
cross-validation
In cross-validation, we run our modeling process on different subsets of the data to get multiple measures of model quality.
how does cross-validation work?
We then run a second experiment, where we hold out data from the second fold (using everything except the 2nd fold for training the model.) This gives us a second estimate of model quality. We repeat this process, using every fold once as the holdout. Putting this together, 100% of the data is used as a holdout at some point.
Trade-offs Between Cross-Validation and Train-Test Split