Skip to content

Commit 5462026

Browse files
committed
minor fix
1 parent b7ed563 commit 5462026

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ml_grid/model_classes/H2OBaseClassifier.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -272,8 +272,8 @@ def _prepare_fit(self, X: pd.DataFrame, y: pd.Series):
272272
model_params.setdefault('ignore_const_cols', False)
273273

274274
# --- ROBUSTNESS FIX: Save checkpoints for model recovery ---
275-
if 'export_checkpoints_dir' in estimator_params:
276-
model_params["export_checkpoints_dir"] = self._checkpoint_dir
275+
# Unconditionally add checkpoint directory. All H2O estimators support this.
276+
model_params["export_checkpoints_dir"] = self._checkpoint_dir
277277

278278
return train_h2o, x_vars, outcome_var, model_params
279279

0 commit comments

Comments
 (0)