mlr_learners_clust.hclust | R Documentation |
A LearnerClust for agglomerative hierarchical clustering implemented in stats::hclust()
.
Difference Calculation is done by stats::dist()
This Learner can be instantiated via the dictionary mlr_learners or with the associated sugar function lrn()
:
mlr_learners$get("clust.hclust") lrn("clust.hclust")
Task type: “clust”
Predict Types: “partition”
Feature Types: “logical”, “integer”, “numeric”
Required Packages: mlr3, mlr3cluster, 'stats'
Id | Type | Default | Levels | Range |
method | character | complete | ward.D, ward.D2, single, complete, average, mcquitty, median, centroid | - |
members | untyped | - | ||
distmethod | character | euclidean | euclidean, maximum, manhattan, canberra, binary, minkowski | - |
diag | logical | FALSE | TRUE, FALSE | - |
upper | logical | FALSE | TRUE, FALSE | - |
p | numeric | 2 | (-\infty, \infty) |
|
k | integer | 2 | [1, \infty) |
|
mlr3::Learner
-> mlr3cluster::LearnerClust
-> LearnerClustHclust
new()
Creates a new instance of this R6 class.
LearnerClustHclust$new()
clone()
The objects of this class are cloneable with this method.
LearnerClustHclust$clone(deep = FALSE)
deep
Whether to make a deep clone.
if (requireNamespace("stats")) {
learner = mlr3::lrn("clust.hclust")
print(learner)
# available parameters:
learner$param_set$ids()
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.