首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >当H2O AutoML返回"H2OFrame是空的“时,我该怎么办?

当H2O AutoML返回"H2OFrame是空的“时,我该怎么办?
EN

Stack Overflow用户
提问于 2019-09-17 16:21:12
回答 2查看 553关注 0票数 0

当使用SageMaker实例使用H2o AutoML训练作业时,在运行代码后出现了一条消息“H2OFrame是空的”,我该怎么办才能解决这个问题?

代码语言:javascript
复制
/opt/ml/input/config/hyperparameters.json
All Parameters:
{'nfolds': '5', 'training': "{'classification': 'true', 'target': 'y'}", 'max_runtime_secs': '3600'}
/opt/ml/input/config/resourceconfig.json
All Resources:
{'current_host': 'algo-1', 'hosts': ['algo-1'], 'network_interface_name': 'eth0'}
Waiting until DNS resolves: 1
10.0.182.83
Starting up H2O-3
Creating Connection to H2O-3
Attempt 0: H2O-3 not running yet...
Connecting to H2O server at http://127.0.0.1:54321... successful.
-------------------------- ----------------------------------------

-------------------------- ----------------------------------------
Beginning Model Training
Parse progress: |█████████████████████████████████████████████████████████| 100%
Classification - If you want to do a regression instead, set "classification":"false" in "training" params, inhyperparamters.json
Converting specified columns to categorical values:
[]
AutoML progress: |████████████████████████████████████████████████████████| 100%
This H2OFrame is empty.
Exception during training: Argument `model` should be a ModelBase, got NoneType None
Traceback (most recent call last):
File "/opt/program/train", line 138, in _train_model
h2o.save_model(aml.leader, path=model_path)
File "/root/.local/lib/python3.7/site-packages/h2o/h2o.py", line 969, in save_model
assert_is_type(model, ModelBase)
File "/root/.local/lib/python3.7/site-packages/h2o/utils/typechecks.py", line 457, in assert_is_type
skip_frames=skip_frames)
h2o.exceptions.H2OTypeError: Argument `model` should be a ModelBase, got NoneType None
H2O session _sid_8aba closed.

我想知道这是否是一个问题,因为max_runtime_secs,我的数据大约有500行和250000列。

EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2019-09-19 15:16:28

谢谢@在评论中跟进您的解决方案。我将在这里重新发布,让其他人很容易找到:

我意识到这个问题是由max_runtime引起的。当我用更多的时间训练这个模型时,我没有问题。

票数 1
EN

Stack Overflow用户

发布于 2019-09-19 13:16:32

通过一些测试,我意识到问题是由于max_runtime,我相信我没有允许模型进行足够的训练。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/57978333

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档