我正在尝试输出"模型的权重和偏差"其中我最初没有训练模型" export_weights_and_biases = TRUE"
因此,我想尝试检查模型,并尝试在新的" model2"中尝试export_weights_and_biases = TRUE。
然而,尽管没有更改任何参数 - 并确保 nfolds = 10 ,就像在原始"模型"中一样,检查点模型继续返回参数更改错误几乎立即(h2o版本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
有任何想法如何解决此问题?我试图做的就是获得原始"模型"的所有权重和偏见。
谢谢!
答案 0 :(得分:1)
我自己解决了这个问题:
1)检查点只能在原始模型中完成:
2)仍然想知道如果可能的话,如何提取模型的权重和偏差。谢谢。