mlr_learners_classif.fnn: Classification Fast Nearest Neighbor Search Learner

Description Dictionary Super classes Methods See Also Examples

Description

Classification fast nearest neighbor search learner. Calls FNN::knn() from package FNN.

Dictionary

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

1
2
mlr_learners$get("classif.fnn")
lrn("classif.fnn")

Super classes

mlr3::Learner -> mlr3::LearnerClassif -> LearnerClassifFNN

Methods

Public methods

Inherited methods

Method new()

Creates a new instance of this R6 class.

Usage
LearnerClassifFNN$new()

Method clone()

The objects of this class are cloneable with this method.

Usage
LearnerClassifFNN$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.

See Also

Dictionary of Learners: mlr3::mlr_learners

Examples

1
2
3
4
5
6
7
if (requireNamespace("FNN")) {
  learner = mlr3::lrn("classif.fnn")
  print(learner)

  # available parameters:
  learner$param_set$ids()
}

mlr3learners/mlr3learners.fnn documentation built on June 9, 2020, 11:23 a.m.