当使用SageMaker实例使用H2o AutoML训练作业时,在运行代码后出现了一条消息“H2OFrame是空的”,我该怎么办才能解决这个问题?
/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列。
发布于 2019-09-19 15:16:28
谢谢@在评论中跟进您的解决方案。我将在这里重新发布,让其他人很容易找到:
我意识到这个问题是由max_runtime引起的。当我用更多的时间训练这个模型时,我没有问题。
发布于 2019-09-19 13:16:32
通过一些测试,我意识到问题是由于max_runtime,我相信我没有允许模型进行足够的训练。
https://stackoverflow.com/questions/57978333
复制相似问题