在R中运行h2o.deeplearning算法时出错

时间:2018-08-03 04:25:39

标签: r h2o

在R中的H2O深度学习中运行此命令时遇到错误:

model <- h2o.deeplearning(x = x, y = y, seed = 1234,
                          training_frame = as.h2o(trainDF),
                          nfolds = 3, 
                          stopping_rounds = 7, 
                          epochs = 400,
                          overwrite_with_best_model = TRUE,
                          activation = "Tanh",
                          input_dropout_ratio = .1,
                          hidden = c(10,10),
                          l1 = 6e-4,
                          loss = "automatic",
                          distribution = 'AUTO',
                          stopping_metric = "MSE")

错误如下:

  

h2o.deeplearning中的错误(x = x,y = y,种子= 1234,training_frame = as.h2o(trainDF),:     未使用的参数(training_frame = as.h2o(trainDF),stopping_rounds = 7,overwrite_with_best_model = TRUE,分布=“ AUTO”,stopping_metric =“ MSE”)

1 个答案:

答案 0 :(得分:1)

我无法重现您的特定错误,但是我可以通过将loss="automatic"更新为loss="Automatic"来使代码正常工作(请注意,loss是这样敏感)。