繁体   English   中英

错误“出了问题; 所有RMSE指标值都缺失“使用Caret中的frbs包中的SBC

[英]Error “Something is wrong; all the RMSE metric values are missing” using SBC from frbs package in Caret

我一直试图使用Caret for R中的'frbs'包中的'SBC'方法来拟合模型。我在SO中看到了类似的问题,针对不同的包并尝试了解决方案,但它们似乎在我的情况下不起作用。 我已经使用iris数据集提供了可重现性的代码片段。

library(caret)
data("iris")
grid<-expand.grid(r.a = c(0.5),
                                     eps.high = c(0.5),
                                     eps.low = c(0))

Fit <- train(Sepal.Length ~ Sepal.Width + Petal.Length + Petal.Width, data = iris,
                                 method = "SBC", 
                               #  trControl = fitControl,
                                 tuneGrid=grid,
                                 verbose = TRUE)

Fit$results

获得的错误是:

Something is wrong; all the RMSE metric values are missing:
      RMSE        Rsquared  
 Min.   : NA   Min.   : NA  
 1st Qu.: NA   1st Qu.: NA  
 Median : NA   Median : NA  
 Mean   :NaN   Mean   :NaN  
 3rd Qu.: NA   3rd Qu.: NA  
 Max.   : NA   Max.   : NA  
 NA's   :3     NA's   :3    
Error in train.default(x, y, weights = w, ...) : Stopping
In addition: There were 50 or more warnings (use warnings() to see the first 50)

我检查了警告(),它显示“模型适合失败的Resample17:ra = 0.5,eps.high = 0.5,eps.low = 0错误frbs.learn(data.train =结构(c(3.5,3,3.2) ,3.1,3.4,3.4,:.....“。我甚至尝试过单独安装frbs包。此外,我确保变量的类不是因素,即使对于我的数据。

我的问题是如何解决此错误以及为什么会发生此错误。 任何帮助将非常感激。

提前致谢。

由于Max Kuhn,这个问题已得到解决。 这里给出了Caret的github页面中解决方案的链接。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM