Loading topic
X and the label vector y, and the errors you get when they are wrong.2 min readX to labels y. The type of y decides which kind of problem you are solving, and that choice determines which scikit-learn estimators, metrics, and sp2 min readX with shape (n_samples, n_features) and a label vector y with shape (n_samples,). It also assumes you know the difference between classification and regression targets. Here you will learn how to hold back part of the data so you can measu2 min readX (features) and y (labels) split from earlier chapters. Here you learn what an estimator is and what fit does.2 min readX and y, split them with train_test_split, and call fit on an estimator. Here you will use a fitted model to predict, then measure how good those predictions are.2 min readfit and predict do on a scikit-learn estimator, and have split data with train_test_split. It separates two kinds of values on an estimator: settings you choose and values the estimator learns.2 min readpredict, and that you know what X_train and X_test are. A transformer is an estimator that changes the data instead of predicting a label. Scalers, encoders, and imputers are all transformers.2 min readtrain_test_split, call fit and transform on a transformer, and read a basic scikit-learn script. It builds on the transformer methods from the previous chapter.3 min readfit, transform, and predict work on single estimators, and that you understand why fitting on test data causes leakage. Here you will combine those pieces into one object.2 min readPipeline, the fit/transform convention, and basic pandas DataFrames. You should also know why numeric and categorical features need different preprocessing.2 min readPipeline, call fit and predict, and use train_test_split. It also assumes you know why fitting a scaler on test data is data leakage.2 min readfit/predict workflow and the difference between constructor settings (hyperparameters) and attributes learned during fit, which end in an underscore. Here you will see how scikit-learn lets you read, change, and copy those settings in a uniform way.2 min readfit, transform, and fit_transform. You should also know how a Pipeline chains steps and how get_params and clone work.2 min read