Quantcast
Channel: Data Science, Analytics and Big Data discussions - Latest topics
Viewing all articles
Browse latest Browse all 4448

Something is wrong; all the Accuracy metric values are missing:

$
0
0

@SupriyoB wrote:

Hi

This is the code snippet in R. This is for lord of the machines hackathon.
My code snippet :-

x= training[,-c(1,2,3,4,6,15)]
y = training$is_click
fit_svm <- train(x,y,method = ‘svmLinear’,
metric = “Accuracy”,
preProcess=c(“center”,“scale”),
trControl = trainControl(method = ‘repeatedcv’,number = 2))

Getting the error
Something is wrong; all the Accuracy metric values are missing:

These are the warning messages :-
Warning messages:
1: In FUN(newX[, i], …) : NAs introduced by coercion
2: In FUN(newX[, i], …) : NAs introduced by coercion
3: In FUN(newX[, i], …) : NAs introduced by coercion
4: In FUN(newX[, i], …) : NAs introduced by coercion
5: model fit failed for Fold1.Rep1: C=1 Error in if (any(co)) { : missing value where TRUE/FALSE needed

6: In FUN(newX[, i], …) : NAs introduced by coercion
7: In FUN(newX[, i], …) : NAs introduced by coercion
8: In FUN(newX[, i], …) : NAs introduced by coercion
9: In FUN(newX[, i], …) : NAs introduced by coercion
10: model fit failed for Fold2.Rep1: C=1 Error in if (any(co)) { : missing value where TRUE/FALSE needed

11: In nominalTrainWorkflow(x = x, y = y, wts = weights, info = trainInfo, … :
There were missing values in resampled performance measures.

Can someone tell me what is wrong ?

Thanks
Supriyo

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 4448

Trending Articles