sdm_spec_rand_forest {tidysdm} | R Documentation |
Model specification for a Random Forest for SDM
Description
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.
Usage
sdm_spec_rand_forest(..., tune = c("sdm", "all", "custom", "none"))
sdm_spec_rf(..., tune = c("sdm", "all", "custom", "none"))
Arguments
... |
parameters to be passed to |
tune |
character defining the tuning strategy. Valid strategies are:
|
Details
sdm_spec_rf()
is simply a short form for sm_spec_rand_forest()
.
Value
a parsnip::model_spec of the model.
See Also
Other "sdm model specifications":
sdm_spec_boost_tree()
,
sdm_spec_gam()
,
sdm_spec_glm()
,
sdm_spec_maxent()
Examples
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)