Skip to content

Instantly share code, notes, and snippets.

@monogenea
Created October 7, 2019 18:59
Embed
What would you like to do?
# 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