Calls FNN::knn.reg from package FNN.

Dictionary

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

mlr_learners$get("regr.fnn")
lrn("regr.fnn")

Traits

  • Packages: FNN

  • Predict Types: response

  • Feature Types: integer, numeric

  • Properties:

See also

Author

be-marc

Super classes

mlr3::Learner -> mlr3::LearnerRegr -> LearnerRegrFNN

Methods

Public methods

Inherited methods

Method new()

Creates a new instance of this R6 class.

Usage

LearnerRegrFNN$new()


Method clone()

The objects of this class are cloneable with this method.

Usage

LearnerRegrFNN$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.

Examples

# stop example failing with warning if package not installed learner = suppressWarnings(mlr3::lrn("regr.fnn")) print(learner)
#> <LearnerRegrFNN:regr.fnn> #> * Model: - #> * Parameters: list() #> * Packages: FNN #> * Predict Type: response #> * Feature types: integer, numeric #> * Properties: -
# available parameters: learner$param_set$ids()
#> [1] "k" "algorithm"