【问题标题】:Error: Not a recognized resampling method错误:不是公认的重采样方法
【发布时间】:2022-01-07 07:59:38
【问题描述】:

我无法运行我的模型来平衡我的数据框。它告诉我你不认识重采样方法。我该怎么办?

> # Criando funcao controle para o treino
> ctrl <- trainControl(method = "repeateadcv",
+                      number = 10,
+                      repeats = 5,
+                      summaryFunction = twoClassSummary,
+                      classProbs = TRUE)
Warning message:
`repeats` has no meaning for this resampling method. 

> # Construindo modelo padrao de classificacao usando GBM
> model1 <- train(is_attributed ~ .,
+                 data = df1,
+                 method = "gbm",
+                 verbose = FALSE,
+                 metric = "ROC",
+                 trControl = ctrl)
Error: Not a recognized resampling method.

【问题讨论】:

    标签: r resampling imbalanced-data


    【解决方案1】:

    问题在于超参数方法。是“repeatedcv”,不是“repeateadcv”,没有a

    【讨论】:

      猜你喜欢
      • 2022-03-07
      • 2013-03-25
      • 2017-10-16
      • 2015-10-16
      • 1970-01-01
      • 2022-01-04
      • 2022-01-26
      • 2013-09-23
      • 1970-01-01
      相关资源
      最近更新 更多