mltune.wrappers package
Module contents
- class mltune.wrappers.RandomForestModelWrapper(hyperparameters=None, features=None)[source]
Bases:
BaseModelWrapper
Wrapper for sklearn.ensemble.RandomForestClassifier.
Initializes the underlying RandomForestClassifier with given hyperparameters.
- Parameters:
hyperparameters (dict of str to Any) – Model hyperparameters to configure RandomForestClassifier.
features (list of str) – List of feature names to use during training and prediction.
- class mltune.wrappers.XGBoostModelWrapper(hyperparameters=None, features=None)[source]
Bases:
BaseModelWrapper
Wrapper for xgboost.XGBClassifier.
Initializes the underlying XGBClassifier with given hyperparameters.
- Parameters:
hyperparameters (dict of str to Any) – Model hyperparameters to configure RandomForestClassifier.
features (list of str) – List of feature names to use during training and prediction.
- class mltune.wrappers.LightGBMModelWrapper(hyperparameters=None, features=None)[source]
Bases:
BaseModelWrapper
Wrapper for lightgbm.LGBMClassifier.
Initializes the underlying LGBMClassifier with given hyperparameters.
- Parameters:
hyperparameters (dict of str to Any) – Model hyperparameters to configure RandomForestClassifier.
features (list of str) – List of feature names to use during training and prediction.