Loading topic
fit and predict. The previous chapter explained why training-set performance is optimistic. Here you will see the simplest fix and where it falls short.3 min readfit and predict API. It also assumes you have seen why a single holdout split gives a noisy estimate. Here you will see how k-fold cross-validation fixes that.2 min readfit and predict, and know accuracy, precision, recall and ROC AUC. Here you will learn how to turn k fold scores into a number you can report, and how to describe how far to trust it.3 min readfit/predict API, and metrics such as accuracy. It covers why plain k-fold can mislead on classification data and how stratification fixes it.2 min readfit, transform and predict methods, and that you have run k-fold cross-validation with cross_val_score. You should also know what a scaler or feature selector does.3 min readcross_val_score in scikit-learn, and understand overfitting. Here you will learn how to pick the number of folds, k, and why the choice matters.3 min readcross_val_score, and what data leakage is. You should also be comfortable with scikit-learn pipelines.2 min readfit/predict API, and the bias and variance trade-off from the chapter on choosing k. Leave-one-out and leave-p-out are the extreme end of the k scale. They are useful in a few situations and costly or misleading in many othe3 min readcross_val_score on a scikit-learn pipeline.3 min readGridSearchCV. It covers why the best score from a hyperparameter search is too optimistic, and how nested cross-validation fixes that.3 min read