我正在尝试拆分我的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
感谢任何帮助
答案 0 :(得分:1)
这是在最新的稳定版本中修复的
http://h2o-release.s3.amazonaws.com/h2o/rel-simons/7/index.html
python没有轮询等待拆分帧完成,然后才进入下一步(导致找不到异常)