sdm_spec_gam {tidysdm} | R Documentation |
Model specification for a GAM for SDM
Description
This function returns a parsnip::model_spec for a General Additive Model to be used as a classifier of presences and absences in Species Distribution Model.
Usage
sdm_spec_gam(..., tune = "none")
Arguments
... |
parameters to be passed to |
tune |
character defining the tuning strategy. As there are no
hyperparameters to tune in a gam, the only valid option is "none". This
parameter is present for consistency with other |
Details
Note that, when using GAMs in a workflow_set()
, it is necessary to update
the model with gam_formula()
(see parsnip::model_formula
for a
discussion of formulas with special terms in tidymodels
):
workflow_set( preproc = list(default = my_recipe), models = list(gam = sdm_spec_gam()), cross = TRUE ) %>% update_workflow_model("default_gam", spec = sdm_spec_gam(), formula = gam_formula(my_recipe))
Value
a parsnip::model_spec of the model.
See Also
parsnip::gen_additive_mod()
gam_formula()
Other "sdm model specifications":
sdm_spec_boost_tree()
,
sdm_spec_glm()
,
sdm_spec_maxent()
,
sdm_spec_rand_forest()
Examples
my_gam_spec <- sdm_spec_gam()