[R] Error in Rose Method (class balancing)
Neha gupta
neh@@bo|ogn@90 @end|ng |rom gm@||@com
Thu Jul 23 00:43:23 CEST 2020
Hello,
I get the following error when I use the ROSE class balancing method but
when I use other methods like SMOTE, up, down, I do not get any error
message.
Something is wrong; all the ROC metric values are missing:
ROC Sens Spec
Min. : NA Min. : NA Min. : NA
1st Qu.: NA 1st Qu.: NA 1st Qu.: NA
Median : NA Median : NA Median : NA
Mean :NaN Mean :NaN Mean :NaN
3rd Qu.: NA 3rd Qu.: NA 3rd Qu.: NA
Max. : NA Max. : NA Max. : NA
library(DMwR)
d=readARFF("bughunter.arff")
index <- createDataPartition(d$`Bug class`, p = .70,list = FALSE)
tr <- d[index, ]
ts <- d[-index, ]
boot3 <- trainControl(method = "repeatedcv", number=10,
repeats=10,classProbs = TRUE,verboseIter = FALSE,
summaryFunction = twoClassSummary, sampling = "rose")
set.seed(30218)
ct <- train(`Bug class` ~ ., data = tr,
method = "pls",
metric = "AUC",
preProc = c("center", "scale", "nzv"),
trControl = boot3)
getTrainPerf(ct)
[[alternative HTML version deleted]]
More information about the R-help
mailing list