R/LearnerClassifQDA.R
mlr_learners_classif.qda.RdQuadratic discriminant analysis.
Calls MASS::qda() from package MASS.
Parameters method and prior exist for training and prediction but
accept different values for each. Therefore, arguments for
the predict stage have been renamed to predict.method and predict.prior,
respectively.
This Learner can be instantiated via the dictionary mlr_learners or with the associated sugar function lrn():
mlr_learners$get("classif.qda") lrn("classif.qda")
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/.
mlr3::Learner -> mlr3::LearnerClassif -> LearnerClassifQDA
new()Creates a new instance of this R6 class.
LearnerClassifQDA$new()
clone()The objects of this class are cloneable with this method.
LearnerClassifQDA$clone(deep = FALSE)
deepWhether to make a deep clone.
if (requireNamespace("MASS")) { learner = mlr3::lrn("classif.qda") print(learner) # available parameters: learner$param_set$ids() }#> <LearnerClassifQDA:classif.qda> #> * Model: - #> * Parameters: list() #> * Packages: MASS #> * Predict Type: response #> * Feature types: logical, integer, numeric, factor, ordered #> * Properties: multiclass, twoclass, weights#> [1] "prior" "method" "nu" "predict.method" #> [5] "predict.prior"