H2O is an Open Source, Distributed, Fast & Scalable Machine Learning Platform: Deep Learning, Gradient Boosting (GBM) & XGBoost, Random Forest, Generalized Linear Modeling (GLM with Elastic Net), K-Means, PCA, Generalized Additive Models (GAM), RuleFit, Support Vector Machine (SVM), Stacked Ensembles, Automatic Machine Learning (AutoML), etc.
Comment from [~accountid:5b153fb1b0d76456f36daced]:
{quote}this legacy catch (IllegalArgumentException e) looks so nasty with the nested catch (RuntimeException e) inside.
I'm sure its scope should have been limited to params = it.nextModelParameters(model);, avoiding you to have to handle numberOfBuiltModels-- multiple times.
In worst case scenario — let's imagine grid.appendFailedModelParameters throws an IllegalArgumentException — the counter will be decremented twice.{quote}
Originally discussed here [https://github.com/h2oai/h2o-3/pull/4114#discussion_r352644226|https://github.com/h2oai/h2o-3/pull/4114#discussion_r352644226]
Comment from [~accountid:5b153fb1b0d76456f36daced]:
{quote}this legacy catch (IllegalArgumentException e) looks so nasty with the nested catch (RuntimeException e) inside. I'm sure its scope should have been limited to params = it.nextModelParameters(model);, avoiding you to have to handle numberOfBuiltModels-- multiple times. In worst case scenario — let's imagine grid.appendFailedModelParameters throws an IllegalArgumentException — the counter will be decremented twice.{quote}