View source: R/sdm_spec_rand_forest.R
sdm_spec_rand_forest | R Documentation |
This function returns a parsnip::model_spec for a Random Forest to
be used as a classifier of presences and absences in Species Distribution
Models. It uses the library ranger
to fit boosted trees; to use another
library, simply build the
parsnip::model_spec directly.
sdm_spec_rand_forest(..., tune = c("sdm", "all", "custom", "none"))
sdm_spec_rf(..., tune = c("sdm", "all", "custom", "none"))
... |
parameters to be passed to |
tune |
character defining the tuning strategy. Valid strategies are:
|
sdm_spec_rf()
is simply a short form for sm_spec_rand_forest()
.
a parsnip::model_spec of the model.
Other "sdm model specifications":
sdm_spec_boost_tree()
,
sdm_spec_gam()
,
sdm_spec_glm()
,
sdm_spec_maxent()
test_rf_spec <- sdm_spec_rf(tune = "sdm")
test_rf_spec
# combining tuning with specific values for other hyperparameters
sdm_spec_rf(tune = "sdm", trees = 100)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.