daily pastebin goal
34%
SHARE
TWEET

Untitled

a guest Dec 15th, 2017 51 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. trControl <- trainControl(method  = "cv",
  2.                           number  = 5)
  3.    
  4. fit <- train(Species ~ .,
  5.              method     = "knn",
  6.              tuneGrid   = expand.grid(k = 1:10),
  7.              trControl  = trControl,
  8.              metric     = "Accuracy",
  9.              data       = iris)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top