tabensemb.model.RFE._train_data_preprocess#
method
- RFE._train_data_preprocess(model_name, warm_start=False)#
Processing the data from
self.trainer.datamodulefor training.- Parameters:
- model_name:
The name of a selected model.
- warm_start
Finetune models based on previous trained models.
- Returns:
- dict
A dictionary that has the following keys: X_train, y_train, X_val, y_val, X_test, y_test. Those with postfixes
_trainor_valwill be passed to_train_single_model()and_bayes_eval(). All of them will be passed to_pred_single_model()for evaluation.
Notes
self.trainer.datamodule.X_train/val/testare not scaled. To scale the df, rundf = datamodule.data_transform(df, scaler_only=True)