如何使用 CURL 从命令行获取 H2O automl?

How to get H2O automl working from command line using CURL?

我正在尝试使用 CURL 从命令行启动 H2O AutoML,但无法使其正常工作。

基本命令如下: curl -X POST -H 'application/x-www-form-urlencoded; charset=UTF-8' -d 'training_frame=12cfbae9-af66-42fd-835f-13ccc5a508ab' "http://localhost:54321/99/AutoMLBuilder"

我尝试了各种参数,但我总是收到未知参数错误。

我使用如下 CURL 命令使其工作:

curl -X POST -H 'Content-Type: application/json' -d '{"input_spec":{"training_frame":"1acfbae9-af66-42fd-835f-13ccc5a508cb","response_column":"mpg","ignored_columns":[],"sort_metric":null},"build_models":{"exclude_algos":[]},"build_control":{"nfolds":5,"keep_cross_validation_predictions":true,"keep_cross_validation_models":true,"balance_classes":false,"class_sampling_factors":[],"max_after_balance_size":5,"stopping_criteria":{"seed":-1,"max_models":0,"max_runtime_secs":30,"stopping_rounds":3,"stopping_tolerance":-1},"project_name":"automl-mpg"}}' http://localhost:54321/99/AutoMLBuilder

上面1acfbae9-af66-42fd-835f-13ccc5a508cb是训练框id