Getting this result when trying to test predictive accuracy of logistic regression model. It doesn't seem right. Any help appreciated!
> dput(head(test$subscribed))
structure(c(1L, 1L, 1L, 1L, 1L, 1L), .Label = c("no", "yes"), class =
"factor")
Input
predictions <- predict(final_model, test, type = "response")`
class_pred<- as.factor(ifelse(predictions > .5, "Yes", "No"))
postResample(class_pred, test$subscribed)
Output
Accuracy Kappa
NA NA