Loading topic
fit, predict and score on a scikit-learn estimator. It also assumes you have met the idea of overfitting.2 min readfit, predict, and score on a scikit-learn estimator. It covers the difference between the two kinds of values a model has, and what it means to tune one of them.2 min readGridSearchCV combines a grid of candidate settings with cross-validation to pick the best one.2 min readGridSearchCV works in scikit-learn. It explains why the score a grid search reports for its winner is biased upward, and it sets up the fix in the next chapters.2 min readfit and transform pattern, and the basics of Pipeline. It covers data leakage, one of the most common ways an evaluation score ends up too good.2 min readGridSearchCV works. The previous chapters showed that best_score_ from a grid search is optimistic. Here we fix that.3 min readGridSearchCV, and Pipeline in scikit-learn. Nested cross-validation only gives an honest estimate if both the inner and outer loops split the data in a way that matches how the model will be used. A splitter that ignores the structure of you2 min readGridSearchCV and cross_val_score work, and that you have seen why the best score from a grid search is optimistic. Here we put the pieces together.2 min readGridSearchCV and cross_val_score. It also assumes you know what the inner and outer loops of nested cross-validation do. The goal here is to read what the outer loop gives you and report it honestly.2 min readGridSearchCV and cross_val_score. It also assumes you know what a Pipeline is and have read the previous chapters on nested cross-validation and on reading outer scores.2 min readGridSearchCV and cross_val_score, and that you know how nested cross-validation separates an inner selection loop from an outer evaluation loop. Here we count how many models a nested run trains and look at ways to cut that number.2 min readGridSearchCV inside cross_val_score, with preprocessing in a Pipeline. It adds one question. If you ran the whole procedure again with different random splits, how much would the score change?2 min readGridSearchCV, and the nested setup from earlier chapters. It covers what nested cross-validation (nested CV) does not protect against, and which options exist when it is too costly or does not fit your problem.2 min read