h2oai / h2o-3

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.
http://h2o.ai
Apache License 2.0
6.86k stars 1.99k forks source link

Add an include_default_model argument to grid search #11527

Open exalate-issue-sync[bot] opened 1 year ago

exalate-issue-sync[bot] commented 1 year ago

Let's add a include_default_model argument (defaulting to TRUE) to h2o.grid. I always want to compare my grid search models to the default model and currently you have to write 2x the amount of code to do this:

{code}

Add a default DNN to the grid

dl_grid <- h2o.grid(algorithm = "deeplearning", grid_id = randomgrid_name, x = x, y = y, training_frame = train, nfolds = nfolds, keep_cross_validation_predictions = TRUE, seed = seed, hyper_params = list(activation = "Rectifier"), #dummy search_criteria = list(strategy = "RandomDiscrete", max_models = 1))

Train Random Grid

dl_grid <- h2o.grid(algorithm = "deeplearning", grid_id = randomgrid_name, x = x, y = y, training_frame = train, nfolds = nfolds, keep_cross_validation_predictions = TRUE, seed = seed, hyper_params = hyper_params, search_criteria = search_criteria) {code}

hasithjp commented 1 year ago

JIRA Issue Migration Info

Jira Issue: PUBDEV-4645 Assignee: Raymond Peck Reporter: Erin LeDell State: Open Fix Version: N/A Attachments: N/A Development PRs: N/A