当我使用knn
:
g=summary(knn(train, test, l, k = 3))
Error in knn(train, test, l, k = 3) :
NA/NaN/Inf in foreign function call (arg 6)
In addition: Warning messages:
1: In knn(train, test, l, k = 3) : NAs introduced by coercion
2: In knn(train, test, l, k = 3) : NAs introduced by coercion