一元运算符的参数无效

时间:2016-12-09 10:29:11

标签: r deep-learning h2o

即使没有以一元运算符开头的行,我在R

中收到以下错误
Error in -h2o.deeplearning(activation = "RectifierWithDropout", hidden = c(200,  : 
invalid argument to unary operator

这是函数调用

best_model < - h2o.deeplearning( activation = "RectifierWithDropout",
                                            hidden = c(200, 200, 200, 200, 200),
                                            hidden_dropout_ratio = c(0.1, 0.1, 0.1, 0.1, 0.1),
                                            loss = "CrossEntropy",
                                            l1 = 1e-5,
                                            epochs = EPOCHS,
                                            distribution = "multinomial",
                                            seed = 5000,
                                            balance_classes = TRUE,
                                            y = c("Churn"),
                                            x = columns,
                                            validation_frame = churn_validation,
                                            training_frame = churn_training

                                            )

可能是什么问题?我试图关闭h20并重新启动它,但问题仍然存在。我尝试重新排序属性,但它仍然吐出相同的错误

0 个答案:

没有答案