在我的數據集上使用以下內容時,出現錯誤消息。rpart在嘗試創建分類樹時未運行
rpmodel <- train(Class~.,train, method = "rpart", prox = TRUE)
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 :3 NA's :3
Error in train.default(x, y, weights = w, ...) : Stopping
In addition: There were 26 warnings (use warnings() to see them)
但是在數據集中沒有NA
。
說什麼警告? –
@XavierNayrac我發佈了正在顯示的警告 – amankedia
請發佈警告。你將通過輸入'warnings()'來看到它們。 –