avocado.Dataset.select_features

Dataset.select_features(featurizer)

Select features from the dataset for classification.

This method assumes that the raw features have already been extracted for this dataset and are available with self.raw_features. Use extract_raw_features to calculate these from the data directly, or load_features to recover features that were previously stored on disk.

The features are saved as self.features.

Parameters:featurizer (Featurizer) – The featurizer that will be used to select the features.
Returns:features – The selected features.
Return type:pandas.DataFrame