Calls kernels implemented in distr6 and the result is coerced to a distr6::Distribution.
This Learner can be instantiated via the dictionary mlr_learners or with the associated sugar function lrn():
LearnerDensKDE$new() mlr_learners$get("dens.kde") lrn("dens.kde")
Type: "dens"
Predict Types: pdf, distr
Feature Types: integer, numeric
Properties: missings
Packages: mlr3 mlr3proba distr6
mlr3::Learner
-> mlr3proba::LearnerDens
-> LearnerDensKDE
new()
Creates a new instance of this R6 class.
LearnerDensKDE$new()
clone()
The objects of this class are cloneable with this method.
LearnerDensKDE$clone(deep = FALSE)
deep
Whether to make a deep clone.
The default bandwidth uses Silverman's rule-of-thumb for Gaussian kernels, however for non-Gaussian kernels it is recommended to use mlr3tuning to tune the bandwidth with cross-validation. Other density learners can be used for automated bandwidth selection. The default kernel is Epanechnikov (chosen to reduce dependencies).
Silverman, W. B (1986). Density Estimation for Statistics and Data Analysis. Chapman & Hall, London.
Other density estimators:
mlr_learners_dens.hist