Skip to contents

Quantile Regression with generalized additive models. Calls qgam::qgam() from package qgam.

Form

For the form parameter, a gam formula specific to the Task is required (see example and ?mgcv::formula.gam). If no formula is provided, a fallback formula using all features in the task is used that will make the Learner behave like Linear Quantile Regression. The features specified in the formula need to be the same as columns with col_roles "feature" in the task.

Quantile

The quantile for the Learner, i.e. qu parameter from qgam::qgam(), is set using the value specified in learner$quantiles.

Dictionary

This Learner can be instantiated via lrn():

lrn("regr.qgam")

Meta Information

  • Task type: “regr”

  • Predict Types: “response”, “se”, “quantiles”

  • Feature Types: “logical”, “integer”, “numeric”, “factor”

  • Required Packages: mlr3, qgam

Parameters

IdTypeDefaultLevelsRange
formuntyped--
lsignumeric-\((-\infty, \infty)\)
errnumeric-\([0, 1]\)
clusteruntypedNULL-
multicorelogical-TRUE, FALSE-
ncoresnumeric-\((-\infty, \infty)\)
paroptsuntypedlist()-
linkuntyped"identity"-
argGamuntyped--
block.sizeinteger1000\((-\infty, \infty)\)
unconditionallogicalFALSETRUE, FALSE-

References

Fasiolo, Matteo, Wood, N. S, Zaffran, Margaux, Nedellec, Raphael, Goude, Yannig (2017). “Fast Calibrated Additive Quantile Regression.” Journal of the American Statistical Association, 116, 1402–1412. doi:10.1080/01621459.2020.1725521 .

See also

Author

lona-k

Super classes

mlr3::Learner -> mlr3::LearnerRegr -> LearnerRegrQGam

Methods

Inherited methods


Method new()

Creates a new instance of this R6 class.

Usage


Method clone()

The objects of this class are cloneable with this method.

Usage

LearnerRegrQGam$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.

Examples

# simple example