Loading topic
fit, predict and score methods. By the end7 min readfit, predict and score interface. The previous chapter showed that a single holdout split gives a noisy estimate of generalization error. K-fold cr5 min readfit/predict/score interface. You should also remember k-fold cross-vali5 min readGridSearchCV does step by step, how to read its results, and which details cause trouble in practice. The next chapter explains why 5 min readGridSearchCV and cross_val_score, and that you know what a cross-validation fold is. It explains why the number in best_score_ overstates how well the chosen model will do on new data. The next chapters build on that to introduce nested cross-validation.6 min readGridSearchCV tunes hyperparameters. You should also know scikit-learn's fit/transform convention and have used make_pipeline at least once. The chapter is about one rule: every step that learns something from data must b6 min readGridSearchCV work, and that you have seen the previous chapter's point: the best score from a search is optimistic. Here we build the fix. The scikit-learn details and result reporting come in the next chapters.5 min readGridSearchCV and cross_val_score, and that you know why the best score of a search is optimistic. It also assumes you have seen the nested setup, where an inner search runs inside each outer training set. Here the question is what to do with the output. You will 5 min readGridSearchCV call, you know what cross_val_score returns, and you have already run nested cross-validation as shown in the previous chapters. Here we answer the question that follows it: nested cross-validation gives you a number, but which model do you ship?5 min readGridSearchCV inside cross_val_score. It also assumes you know what inner and outer loops are, and that you have seen per-fold scores printed. Here the question is how much to trust the single number you get at the end.6 min readGridSearchCV inside cross_val_score. It also assumes you know why the best inner score is optimistic. Here you will compare nested cross-validation with cheaper or simpler designs, and see which problems it does not solve.6 min read