如何使用 rest api 运行 h2o AutoML?

How to run h2o AutoML by using rest api?

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

参数通过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 对象名称。