我正在尝试导出“模型”的权重和偏差,其中我最初没有使用“export_weights_and_biases = TRUE”训练模型
因此,我想尝试检查模型并尝试在新的“model2”中导出_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
任何想法如何解决这个问题?我要做的就是获得我原来的“模型”的所有权重和偏差。
谢谢!