ml_grid.model_classes.H2OAutoMLClassifier
Attributes
Classes
Initializes the H2OAutoMLClassifier. |
Module Contents
- class ml_grid.model_classes.H2OAutoMLClassifier.H2OAutoMLClassifier(**kwargs)[source]
Bases:
ml_grid.model_classes.H2OBaseClassifier.H2OBaseClassifierInitializes the H2OAutoMLClassifier.
Note: H2OAutoML is not a standard estimator, so we use a placeholder in the base class and manage the AutoML process within the fit method.
- fit(X: pandas.DataFrame, y: pandas.Series, **kwargs) H2OAutoMLClassifier[source]
Fits the H2O AutoML process.
If the dataset is too small or AutoML fails to find a leader model, it gracefully falls back to a simple GLM model.
- Parameters:
X (pd.DataFrame) – The feature matrix.
y (pd.Series) – The target vector.
**kwargs – Additional keyword arguments (not used by this implementation).
- Returns:
The fitted classifier instance.
- Return type: