Linear discriminant analysis. Calls MASS::lda() from package MASS.

Dictionary

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

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

References

Venables WN, Ripley BD (2002). Modern Applied Statistics with S, Fourth edition. Springer, New York. ISBN 0-387-95457-0, http://www.stats.ox.ac.uk/pub/MASS4.

See also

Super classes

mlr3::Learner -> mlr3::LearnerClassif -> LearnerClassifLDA

Methods

Public methods

Inherited methods

Method new()

Creates a new instance of this R6 class.

Usage

LearnerClassifLDA$new()


Method clone()

The objects of this class are cloneable with this method.

Usage

LearnerClassifLDA$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.

Examples

if (requireNamespace("MASS")) { learner = mlr3::lrn("classif.lda") print(learner) # available parameters: learner$param_set$ids() }
#> <LearnerClassifLDA:classif.lda> #> * Model: - #> * Parameters: list() #> * Packages: MASS #> * Predict Type: response #> * Feature types: logical, integer, numeric, factor, ordered #> * Properties: multiclass, twoclass, weights
#> [1] "prior" "tol" "method" "nu" #> [5] "predict.method"