mlr_learners_clust.hclust: Agglomerative Hierarchical Clustering Learner

mlr_learners_clust.hclustR Documentation

Agglomerative Hierarchical Clustering Learner

Description

A LearnerClust for agglomerative hierarchical clustering implemented in stats::hclust(). Difference Calculation is done by stats::dist()

Dictionary

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")

Meta Information

  • Task type: “clust”

  • Predict Types: “partition”

  • Feature Types: “logical”, “integer”, “numeric”

  • Required Packages: mlr3, mlr3cluster, 'stats'

Parameters

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)

Super classes

mlr3::Learner -> mlr3cluster::LearnerClust -> LearnerClustHclust

Methods

Public methods

Inherited methods

Method new()

Creates a new instance of this R6 class.

Usage
LearnerClustHclust$new()

Method clone()

The objects of this class are cloneable with this method.

Usage
LearnerClustHclust$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.

Examples

if (requireNamespace("stats")) {
  learner = mlr3::lrn("clust.hclust")
  print(learner)

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

mlr3cluster documentation built on March 31, 2023, 11:11 p.m.