H2O检查点参数更改错误-但未更改任何参数? [英] h2o checkpoint parameter change error - but no parameter changed??

查看:147
本文介绍了H2O检查点参数更改错误-但未更改任何参数?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试导出模型"的权重和偏差,而我最初并未使用"export_weights_and_biases = TRUE"来训练模型

I am trying to export the weights and biases of a "model" in which I did not originally train the model with "export_weights_and_biases = TRUE"

因此,我想尝试检查模型并尝试在新的"model2"中将export_weights_and_biases = TRUE.

Therefore, I'd like to try to checkpoint the model and try to export_weights_and_biases = TRUE in a new "model2".

但是,尽管未更改任何参数-并确保 nfolds = 10 与原始模型"一样,检查点模型仍几乎立即立即返回参数更改错误(H2O版本3.10.4.6):

However, despite not changing any of the parameters - and ensuring that nfolds=10 just as in the original "model", the checkpoint model continues to return a parameter change error almost immediately (h2o version 3.10.4.6):

water.exceptions.H2OIllegalArgumentException: Cannot change parameter: '_nfolds': 10 -> 0

water.exceptions.H2OIllegalArgumentException: Cannot change parameter: '_nfolds': 10 -> 0
    at hex.deeplearning.DeepLearningModel$DeepLearningParameters$Sanity.checkIfParameterChangeAllowed(DeepLearningModel.java:2078)
    at hex.deeplearning.DeepLearning$DeepLearningDriver.buildModel(DeepLearning.java:249)
    at hex.deeplearning.DeepLearning$DeepLearningDriver.computeImpl(DeepLearning.java:211)
    at hex.ModelBuilder$Driver.compute2(ModelBuilder.java:169)
    at hex.deeplearning.DeepLearning$DeepLearningDriver.compute2(DeepLearning.java:204)
    at water.H2O$H2OCountedCompleter.compute(H2O.java:1241)
    at jsr166y.CountedCompleter.exec(CountedCompleter.java:468)
    at jsr166y.ForkJoinTask.doExec(ForkJoinTask.java:263)
    at jsr166y.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:974)
    at jsr166y.ForkJoinPool.runWorker(ForkJoinPool.java:1477)
    at jsr166y.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:104)

Error: water.exceptions.H2OIllegalArgumentException: Cannot change parameter: '_nfolds': 10 -> 0

任何想法如何解决此问题?我要做的就是获取原始模型"的所有权重和偏差.

Any ideas how to resolve this issue? All I'm trying to do is obtain all the weights and biases of my original "model".

谢谢!

推荐答案

我自己解决了这个问题:

I resolved this on my own:

1)仅在原始模型下才能执行检查点:

1) Checkpoint can only be done if original model:

  • 未使用简历
  • 或使用CV,但将折页分配设置为Modulo
  • 当然,如果其他某些参数(例如nfolds)未更改,则
  • .

2)如果可能的话,我仍然想知道如何提取模型的权重和偏差.谢谢.

2) Would still like to know how it would be possible to extract the weights and biases of my model if possible. Thank you.

这篇关于H2O检查点参数更改错误-但未更改任何参数?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆