Created
August 15, 2014 10:54
-
-
Save hamsternik/35d3bbc9bee18d057c4d to your computer and use it in GitHub Desktop.
r_forest_function
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# any idea where i take the data :) | |
# but basically, i've taken it from 'data(...)' | |
rf_caret <- train(Class ~ ., data = train, method = "rf", trControl = | |
trainControl(method = "repeatedcv", repeats = 5)) | |
rf_importance <- varImpPlot(rf_caret$finalModel) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment