Skip to contents

Calls kernlab::gausspr from package kernlab.

Details

Parameters sigma, degree, scale, offset and order are added to make tuning kpar easier. If kpar is provided then these new parameters are ignored. If none are provided then the default "automatic" is used for kpar.

Dictionary

This Learner can be instantiated via the dictionary mlr_learners or with the associated sugar function lrn():

mlr_learners$get("classif.gausspr")
lrn("classif.gausspr")

Meta Information

  • Task type: “classif”

  • Predict Types: “response”, “prob”

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

  • Required Packages: mlr3extralearners, kernlab

Parameters

IdTypeDefaultLevelsRange
scaledlistTRUE\((-\infty, \infty)\)
kernelcharacterrbfdotrbfdot, polydot, vanilladot, tanhdot, laplacedot, besseldot, anovadot, splinedot\((-\infty, \infty)\)
sigmanumeric-\((-\infty, \infty)\)
degreenumeric-\((-\infty, \infty)\)
scalenumeric-\((-\infty, \infty)\)
offsetnumeric-\((-\infty, \infty)\)
ordernumeric-\((-\infty, \infty)\)
kparlistautomatic\((-\infty, \infty)\)
tolnumeric0.001\([0, \infty)\)
fitlogicalTRUETRUE, FALSE\((-\infty, \infty)\)
crossinteger0\([0, \infty)\)
na.actionlistfunction (object, ...) , UseMethod("na.omit")\((-\infty, \infty)\)

See also

Author

RaphaelS1

Super classes

mlr3::Learner -> mlr3::LearnerClassif -> LearnerClassifGausspr

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

LearnerClassifGausspr$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.

Examples

if (requireNamespace("kernlab", quietly = TRUE)) {
  learner = mlr3::lrn("classif.gausspr")
  print(learner)

  # available parameters:
  learner$param_set$ids()
}
#> <LearnerClassifGausspr:classif.gausspr>
#> * Model: -
#> * Parameters: list()
#> * Packages: mlr3, mlr3extralearners, kernlab
#> * Predict Type: response
#> * Feature types: numeric, integer, logical, character, factor, ordered
#> * Properties: multiclass, twoclass
#>  [1] "scaled"    "kernel"    "sigma"     "degree"    "scale"     "offset"   
#>  [7] "order"     "kpar"      "tol"       "fit"       "cross"     "na.action"