H2O python split_frame 抛出异常

H2O python split_frame throws exception

我正在尝试拆分我的 h2o 帧,但我一直在下方收到异常,但我能够在 Flow UI 中看到拆分的帧。我试图查找文档,试图找到如何将我在 Flow UI 中看到的框架加载到我的 python shell 中,但也没有成功。

data = h2o.import_frame("train.csv")
Parse Progress: [##################################################] 100%
Imported train.csv. Parsed 878,035 rows and 5 cols

splits = data.split_frame(ratios=[0.80])
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python2.7/dist-packages/h2o/frame.py", line 598, in split_frame
    return [h2o.get_frame(i["name"]) for i in j["destination_frames"]]
  File "/usr/local/lib/python2.7/dist-packages/h2o/h2o.py", line 183, in get_frame
    return H2OFrame.get_frame(frame_id)
  File "/usr/local/lib/python2.7/dist-packages/h2o/frame.py", line 50, in get_frame
    res = h2o.H2OConnection.get_json("Frames/"+urllib.quote(frame_id))["frames"][0]
  File "/usr/local/lib/python2.7/dist-packages/h2o/connection.py", line 391, in get_json
    return __H2OCONN__._rest_json(url_suffix, "GET", None, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/h2o/connection.py", line 400, in _rest_json
    raw_txt = self._do_raw_rest(url_suffix, method, file_upload_info, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/h2o/connection.py", line 466, in _do_raw_rest
    .format(http_result.status_code,http_result.reason,method,url,detailed_error_msgs))
EnvironmentError: h2o-py got an unexpected HTTP status code:
 404 Not Found (method = GET; url = http://localhost:54321/3/Frames/train_part0.hex).
detailed error messages: Object 'train_part0.hex' not found for argument: key

这已在最新的稳定版本中修复

http://h2o-release.s3.amazonaws.com/h2o/rel-simons/7/index.html

python 没有轮询等待拆分帧完成,然后再进入下一步(导致未找到异常)