tabensemb.model.TorchModel._pred_single_model#
method
- TorchModel._pred_single_model(model: AbstractNN, X_test, verbose, **kwargs)[source]#
Predict using the model trained in
_train_single_model().- Parameters:
- model:
The model returned by
_new_model()and trained in_train_single_model().- X_test:
The data from
_data_preprocess()or_train_data_preprocess().- verbose:
Verbosity.
- **kwargs:
Parameters to train the model returned by
_get_params(). It contains all arguments in_initial_values().
- Returns:
- np.ndarray
Prediction of the target.
Notes
For deep learning models with mini-batch training (dataloaders), if an
AbstractWrapperwill be used to extract hidden representations, thebatch_sizewhen inferring should be the length of the dataset. Seetabensemb.model.PytorchTabular._pred_single_model()andtabensemb.model.WideDeep._pred_single_model().