Skip to content

Instantly share code, notes, and snippets.

@monogenea
Created October 7, 2019 18:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save monogenea/60bafafd1782c1fe9da6b7e1d9c062fa to your computer and use it in GitHub Desktop.
Save monogenea/60bafafd1782c1fe9da6b7e1d9c062fa to your computer and use it in GitHub Desktop.
# PCA-DA
mod2 <- train(class ~ ., data = arcene,
method = "lda",
metric = "Accuracy",
trControl = control,
preProc = c("zv","center","scale","pca"))
# RF
mod3 <- train(class ~ ., data = arcene,
method = "ranger",
metric = "Accuracy",
trControl = control,
tuneLength = 6,
preProc = c("zv","center","scale"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment