【发布时间】:2021-10-12 03:58:11
【问题描述】:
我正在尝试以特定方式运行H2OAutoML。我只运行 XGBOOST,我只想要分层折叠,并且只使用booster = 'gbtree'(即我不想在超参数搜索中使用booster = 'dart')
我试过了:
aml = H2OAutoML(
nfolds=5,
include_algos=['XGBoost'],
sort_metric='auc',
seed=1,
max_runtime_secs=10,
algo_parameters=dict(booster = 'gbtree')
)
但得到错误:
Error: Illegal value for field: algo_parameters: booster
Request: POST /99/AutoMLBuilder
json: {'build_control': {'stopping_criteria': {'max_runtime_secs': 10,
'stopping_metric': 'AUTO', 'stopping_rounds': 3, 'seed': 1}, 'nfolds': 5,
'balance_classes': False, 'max_after_balance_size': 5.0,
'keep_cross_validation_models': False, 'keep_cross_validation_fold_assignment':
False, 'keep_cross_validation_predictions': False}, 'build_models':
{'include_algos': ['XGBoost'], 'exploitation_ratio': 0, 'algo_parameters':
[{'scope': 'any', 'name': 'booster', 'value': 'gbtree'}]}, 'input_spec':
{'sort_metric': 'auc', 'training_frame': 'py_1_sid_928f', 'response_column':
'successful', 'weights_column': 'weight', 'ignored_columns': ['C1']}}
【问题讨论】:
-
从list of parameters,'algo_parameters' 不可用。所以,虽然你可以过滤你想运行的算法,但我认为你不能过滤那个算法的超参数。
-
由于您只想运行 XGBoost,您可以使用该算法为自己构建一个grid search,指定您想要尝试的超参数。您甚至可以将 AutoML 使用的超参数复制到 XGBoost