代码之家  ›  专栏  ›  技术社区  ›  AvkashChauhan

如何使用curl从命令行获得h2o automl工作?

h2o
  •  0
  • AvkashChauhan  · 技术社区  · 6 年前

    我试图用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"

    我尝试使用各种参数,但总是得到未知参数的错误。

    1 回复  |  直到 6 年前
        1
  •  1
  •   AvkashChauhan    6 年前

    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