【发布时间】:2020-09-23 03:13:37
【问题描述】:
我正在使用带有 AutoMLStep 的 AzureML SDK 管道。如何将 PipelineParameter 添加到 AutoMLStep 配置中?我想用它来定义 max_horizon。 它应该与
passthru_automl_config=False
但我收到错误
消息:max_horizon 的值不受支持。 max_horizon 必须是整数或“自动”
max_horizon = PipelineParameter(name='max_horizon', default_value=30)
automl_settings = {
"iteration_timeout_minutes" : 60
"grain_column_names": ["COUNTRY_CODE"],
"time_column_name": "DATE"
}
automl_config = AutoMLConfig(task='forecasting',
path = "./src",
primary_metric=primary_metric,
iterations=iterations,
max_concurrent_iterations=max_concurrent_iterations,
training_data = train_data,
label_column_name = label,
n_cross_validations=5,
compute_target = compute_target,
max_horizon= max_horizon,
**automl_settings)
trainWithAutomlStep = AutoMLStep(name="experiment_name",
automl_config=automl_config,
passthru_automl_config=False,
outputs=[metrics_data, model_data],
allow_reuse=True)
【问题讨论】:
-
对了,你的代码中有一个类型:
max_horizon: max_horizon应该是max_horizon = max_horizon -
已修复。谢谢。
标签: azure-machine-learning-service