如何使用rest api运行h2o AutoML?

问题描述 投票:0回答:1

我想通过使用rest api在h2o中运行AutoML?我知道网址是/ 99 / AutoMLBuilder。但我不知道如何发送参数。官方网站上没有示例代码。我可以使用curl访问模型导入/导出,因为参数是平的。但似乎可能是AutoML的参数是嵌套的,我找不到任何关于参数格式的示例代码或答案。

rest h2o automl
1个回答
0
投票

参数通过POST命令以JSON格式发送。例如,假设已经加载了名为airlines的训练框架,您可以通过curl训练AutoML模型:

curl -X POST http://localhost:54321/99/AutoMLBuilder -H "Content-Type: application/json" -d '{"input_spec": {"training_frame":"airlines", "response_column":"IsDepDelayed"}, "build_control": {"project_name":"aml_curl_test", "stopping_criteria":{"max_models":3} } }'

您可以在此处找到完整的REST API参考:http://docs.h2o.ai/h2o/latest-stable/h2o-docs/rest-api-reference.html,它将告诉您每个参数所属的JSON对象名称。

© www.soinside.com 2019 - 2024. All rights reserved.