Skip to content

Instantly share code, notes, and snippets.

@hamsternik
Created August 15, 2014 10:54
Show Gist options
  • Save hamsternik/35d3bbc9bee18d057c4d to your computer and use it in GitHub Desktop.
Save hamsternik/35d3bbc9bee18d057c4d to your computer and use it in GitHub Desktop.
r_forest_function
# 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