Re: [R] Error: all the ROC metric values are missing:

2020-04-15 Thread Neha gupta
d=readARFF("CM1.arff") dput( head( d, 50 ) ) structure(list(LOC_BLANK = c(6, 15, 27, 1, 7, 51, 3, 13, 22, 16, 4, 23, 23, 40, 23, 8, 2, 19, 0, 7, 6, 134, 9, 164, 27, 4, 5, 7, 16, 15, 19, 19, 15, 13, 14, 12, 23, 155, 42, 30, 9, 26, 40, 7, 7, 93, 9, 3, 12, 31), BRANCH_COUNT = c(9, 7, 9, 1, 3, 25, 5,

Re: [R] Error: all the ROC metric values are missing:

2020-04-15 Thread Jeff Newmiller
Someday, Neha, you will learn to post a reproducible example using plain text. I hope. Try using the reprex package. On April 15, 2020 2:32:03 PM PDT, Neha gupta wrote: >What is the problem is the code.. > >d=readARFF("CM1.arff") > >index <- createDataPartition(d$Defective, p = .70,list = FALSE

[R] Error: all the ROC metric values are missing:

2020-04-15 Thread Neha gupta
What is the problem is the code.. d=readARFF("CM1.arff") index <- createDataPartition(d$Defective, p = .70,list = FALSE) tr <- d[index, ] ts <- d[-index, ] index_2 <- createFolds(tr$Defective, returnTrain = TRUE, list = TRUE) ctrl <- trainControl(method = "boot", number=100, index = index_2, sea