Skip to contents

Calls locfit::density.lf from package locfit.

Dictionary

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

mlr_learners$get("dens.locfit")
lrn("dens.locfit")

Meta Information

  • Task type: “dens”

  • Predict Types: “pdf”

  • Feature Types: “integer”, “numeric”

  • Required Packages: mlr3extralearners, locfit

Parameters

IdTypeDefaultLevelsRange
windowcharactergaustcub, rect, trwt, tria, epan, bisq, gaus\((-\infty, \infty)\)
widthnumeric-\((-\infty, \infty)\)
fromnumeric-\((-\infty, \infty)\)
tonumeric-\((-\infty, \infty)\)
cutnumeric-\((-\infty, \infty)\)
degnumeric0\((-\infty, \infty)\)
linkcharacteridentident, log, logit, inverse, sqrt, arcsin\((-\infty, \infty)\)
kerncharactertcubrect, trwt, tria, epan, bisq, gauss, tcub\((-\infty, \infty)\)
ktcharactersphsph, prod\((-\infty, \infty)\)
renormlogicalFALSETRUE, FALSE\((-\infty, \infty)\)
maxkinteger100\([0, \infty)\)
itypecharacter-prod, mult, mlin, haz\((-\infty, \infty)\)
mintinteger20\([1, \infty)\)
maxitinteger20\([1, \infty)\)

See also

Author

RaphaelS1

Super classes

mlr3::Learner -> mlr3proba::LearnerDens -> LearnerDensLocfit

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

LearnerDensLocfit$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.

Examples

if (requireNamespace("locfit", quietly = TRUE)) {
  learner = mlr3::lrn("dens.locfit")
  print(learner)

  # available parameters:
  learner$param_set$ids()
}
#> <LearnerDensLocfit:dens.locfit>
#> * Model: -
#> * Parameters: list()
#> * Packages: mlr3, mlr3extralearners, locfit
#> * Predict Type: pdf
#> * Feature types: integer, numeric
#> * Properties: -
#>  [1] "window" "width"  "from"   "to"     "cut"    "deg"    "link"   "kern"  
#>  [9] "kt"     "renorm" "maxk"   "itype"  "mint"   "maxit"