Learn R Programming

tidysdm (version 1.0.0)

maxnet_predict: Wrapper to predict maxnet models

Description

This function is a wrapper around the predict method for maxnet::maxnet, making the function compatible with parsnip. Users are unlikely to use this function directly. For the parsnip model specification for MaxEnt, see maxent().

Usage

maxnet_predict(
  object,
  newdata,
  type = c("class", "prob"),
  maxnet_type = c("cloglog", "link", "exponential", "logistic"),
  clamp = TRUE
)

Value

a tibble of predictions

Arguments

object

the maxnet::maxnet object

newdata

the dataframe of new data

type

either "prob" or "class"

maxnet_type

the transformation used for the prediction

clamp

logical, defining whether clamping to observed ranges should be used