Loading topic
describe) and that numpy, pandas, matplotlib and scikit-learn are installed. The previous chapter framed the task as regress5 min readdescribe, groupby), can run Python with numpy, pandas, matplotlib and scikit-learn installed, and know what features and a target are. You have already6 min readfit, predict, train_test_split) and know why a test set exists. You should also recall that the project split the California housing data 80/20 with random_state=42. Here you learn what data leakage is, the forms it takes, and how to6 min readfit, predict and transform. By the end you will have a scaler and a model wrapped in one object. That object is safe to cross-validate6 min readrandom_state=42, the mean-predicting DummyRegressor baseline, and the idea of wrapping a scaler and a mo6 min readdf, X_train, X_test, y_train, y_test, and a fitted baseline. You should know what a pipeline is and why the test set stays untouched until the end. The code below recreates the setup so each block runs on its own.6 min readcross_val_score, and the Ridge and HistGradientBoostingRegressor models. It reuses X_train, y_train, X_test and y_test from the split step. Their `random_st6 min readcross_val_score, and GridSearchCV. The 6 min readbest_model, the train/test split, and a w6 min read