Train function from R caret package error: “Something is wrong; all the Accuracy metric values are missing”
问题 I want to run a logreg regression. I obtain the following error after running my code on R: Something is wrong; all the Accuracy metric values are missing: Accuracy Kappa Min. : NA Min. : NA 1st Qu.: NA 1st Qu.: NA Median : NA Median : NA Mean :NaN Mean :NaN 3rd Qu.: NA 3rd Qu.: NA Max. : NA Max. : NA NA's :9 NA's :9 Error in train.default(x, y, weights = w, ...) : Stopping In addition: There were 19 warnings (use warnings() to see them) Here is my code: ## Data donner <- read.delim("http:/