Learn R Programming

tidysdm (version 0.9.5)

sdm_spec_gam: 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")

Value

a parsnip::model_spec of the model.

Arguments

...

parameters to be passed to parsnip::gen_additive_mod() to customise the model. See the help of that function for details.

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 sdm_spec_* functions, but it does nothing in this case.

See Also

Other "sdm model specifications": sdm_spec_boost_tree(), sdm_spec_glm(), sdm_spec_maxent(), sdm_spec_rand_forest()

Examples

Run this code
my_gam_spec <- sdm_spec_gam()

Run the code above in your browser using DataLab