`exclude_algos`
- Available in: AutoML
- Hyperparameter: no
Description
This option allows you to specify a list of algorithms that should not be included in an AutoML run during the model-building phase. This option defaults to None/Null, which means that all algorithms are included. However, if the include_algos option is used, then the AutoML run will include only those specified algorithms. Note that these two options cannot both be specified.
The algorithms that can be specified include:
DRF(including both the Random Forest and Extremely Randomized Trees (XRT) models)GLMXGBoost(XGBoost GBM)GBM(H2O GBM)DeepLearning(Fully connected multi-layer artificial neural network)StackedEnsemble
Related parameters
Example
- R
- Python
library(h2o)
h2o.init()
# Import a sample binary outcome training set into H2O
train <- h2o.importFile("https://s3.amazonaws.com/h2o-public-test-data/smalldata/higgs/higgs_train_10k.csv")
# Identify predictors and response
y <- "response"
x <- setdiff(names(train), y)
# For binary classification, response should be a factor
train[, y] <- as.factor(train[, y])
# Train AutoML, omitting DeepLearning and DRF
aml <- h2o.automl(x = x, y = y,
training_frame = train,
max_runtime_secs = 30,
sort_metric = "logloss",
exclude_algos = c("DeepLearning", "DRF"))
# View the AutoML Leaderboard
lb <- aml@leaderboard
lb
model_id auc logloss
1 StackedEnsemble_AllModels_AutoML_20190321_095825 0.7866967 0.5550255
2 StackedEnsemble_BestOfFamily_AutoML_20190321_095825 0.7848515 0.5569458
3 XGBoost_1_AutoML_20190321_095825 0.7846668 0.5578654
4 XGBoost_2_AutoML_20190321_095825 0.7820392 0.5586830
5 GLM_grid_1_AutoML_20190321_095825_model_1 0.6826481 0.6385205
mean_per_class_error rmse mse
1 0.3309041 0.4338530 0.1882284
2 0.3231440 0.4346720 0.1889397
3 0.3324049 0.4349659 0.1891953
4 0.3269806 0.4356756 0.1898132
5 0.3972341 0.4726827 0.2234290
[5 rows x 6 columns]
import h2o
from h2o.automl import H2OAutoML
h2o.init()
# Import a sample binary outcome training set into H2O
train = h2o.import_file("https://s3.amazonaws.com/h2o-public-test-data/smalldata/higgs/higgs_train_10k.csv")
# Identify predictors and response
x = train.columns
y = "response"
x.remove(y)
# For binary classification, response should be a factor
train[y] = train[y].asfactor()
# Train AutoML, omitting DeepLearning and DRF
aml = H2OAutoML(max_runtime_secs = 30, sort_metric = "logloss",
exclude_algos = ["DeepLearning", "DRF"])
aml.train(x = x, y = y, training_frame = train)
# View the AutoML Leaderboard
lb = aml.leaderboard
lb
model_id auc logloss mean_per_class_error rmse mse
-------------------------------------------------------------- -------- --------- ---------------------- -------- --------
StackedEnsemble_AllModels_AutoML_20190321_095825 0.786697 0.555026 0.330904 0.433853 0.188228
StackedEnsemble_BestOfFamily_AutoML_20190321_095825 0.784852 0.556946 0.323144 0.434672 0.188940
XGBoost_1_AutoML_20190321_095825 0.784667 0.557865 0.332405 0.434966 0.189195
XGBoost_2_AutoML_20190321_095825 0.782039 0.558683 0.326981 0.435676 0.189813
GLM_grid_1_AutoML_20190321_095825_model_1 0.682648 0.638521 0.397234 0.472683 0.223429
[5 rows x 6 columns]
Feedback
- Submit and view feedback for this page
- Send feedback about H2O-3 Secure to cloud-feedback@h2o.ai