Changelog
Source:NEWS.md
mlr3cluster 0.4.0
CRAN release: 2026-06-11
New learners
-
clust.flexmix: Finite mixture model clustering from the flexmix package. -
clust.genie: Genie hierarchical clustering from the genieclust package. -
clust.kcca: K-centroids cluster analysis from the flexclust package, supporting k-means, k-medians, spherical, Jaccard, and extended Jaccard families. -
clust.movMF: Von Mises-Fisher mixture clustering from the movMF package. -
clust.skmeans: Spherical k-means clustering from the skmeans package. -
clust.som: Self-organizing maps from the kohonen package. -
clust.stdbscan: ST-DBSCAN spatio-temporal clustering from the stdbscan package (#83). -
clust.tclust: Robust trimmed clustering from the tclust package.
New measures
-
clust.avg_between: Average between-cluster distance. -
clust.avg_within: Average within-cluster distance. -
clust.davies_bouldin: Davies-Bouldin index. -
clust.dunn2: Alternative Dunn index using average distances. -
clust.entropy: Cluster size distribution entropy. -
clust.pearsongamma: Pearson Gamma correlation between distances and cluster membership. -
clust.wb_ratio: Within/between distance ratio.
Other improvements
- Learners no longer store the training data or dissimilarity matrix in the model by default:
clust.agnes,clust.diana,clust.fanny, andclust.pamnow exposekeep.dissandkeep.data,clust.claraandclust.kprotoexposekeep.data, andclust.apexposesincludeSim, all initialized toFALSE. Set the respective parameter toTRUEto restore the previous behavior. - Clustering quality measures
clust.ch,clust.dunn, andclust.wssare now computed natively instead of relying onfpc::cluster.stats(). The fpc package is no longer a hard dependency. -
clust.cobweb,clust.em,clust.ff,clust.SimpleKMeans, andclust.xmeansnow declare themissingsproperty, since Weka handles missing attribute values natively. -
clust.dianagains thestop.at.kparameter fromcluster::diana(). -
clust.emdrops theexclusiveproperty andclust.MBatchKMeansdropsfuzzy. Use theprobpredict type to select learners with soft memberships.
Bug fixes
-
mlr3clusteris now added tomlr_reflections$loaded_packagesto fix errors when using the package in parallel. -
as_prediction_clust.data.frame()no longer errors withunused argument (with = FALSE)when given a plaindata.frame. -
clust.cmeansnow reports a proper error message when an invalidweightsvalue is given instead of failing with a type error. -
clust.cmeans,clust.kkmeans, andclust.kmeansnow accept a matrix of initial cluster centers for thecentersparameter, matching the upstream functions. -
clust.cobwebnow declares thehierarchicalproperty instead ofpartitional, andclust.meanshiftdeclaresdensityinstead ofpartitional. -
clust.dbscan,clust.dbscan_fpc,clust.hdbscan, andclust.opticsnow declare thepartialproperty instead ofcomplete, since these algorithms can leave observations unassigned (noise points labeled 0). -
clust.featurelessnow returnsprobpredictions whose most probable cluster matches the predictedpartition, with cluster column names consistent with the other learners supporting theprobpredict type. -
clust.silhouettenow returnsNaNinstead of0when all observations belong to a single cluster, since the silhouette width is undefined for k < 2.
mlr3cluster 0.3.0
CRAN release: 2026-03-01
- feat: Add CLARA clustering learner
clust.clarafrom the cluster package. - feat: Add k-prototypes clustering learner
clust.kprotofrom the clustMixType package. - feat: Add spectral clustering learner
clust.speccfrom the kernlab package. - fix:
LearnerClustDBSCANfpcnow correctly passes thenewdataargument in the predict method. - fix:
LearnerClustKKMeansnow correctly passes kernel parameters via thekparlist tokernlab::kkmeans(). - fix:
clust.silhouettemeasure now has the correct range of[-1, 1]. - docs: Fix typos in measure documentation.
mlr3cluster 0.2.0
CRAN release: 2026-02-04
- feat:
Mlr3ErrorandMlr3Warningclasses for errors and warnings. - feat: Add protoclust learner from the protoclust package.
- feat: EM learner now supports probabilistic assignments.
- fix: Update learner parameter sets to match upstream package changes.
- docs: Documentation improvements.
- chore: mlr3cluster now requires R 3.4.0. Following data.table’s minimum R version.
- chore: mlr3cluster now requires mlr3 (>= 1.3.0) and mlr3misc (>= 0.19.0).
mlr3cluster 0.1.12
CRAN release: 2025-11-19
- feat: Add
cluster_selection_epsilonparameter to HDBSCAN learner and initializeminPtsto 5. - docs: Better learner example section.
mlr3cluster 0.1.11
CRAN release: 2025-02-18
- fix: Mclust learner no longer sets the control default with a function not in import to stay compliant with paradox package conventions.
mlr3cluster 0.1.10
CRAN release: 2024-10-03
- feat: Add BIRCH learner from the stream package.
- feat: Add BICO learner from the stream package.
mlr3cluster 0.1.9
CRAN release: 2024-03-18
- feat: Add DBSCAN learner from the fpc package.
- feat: Add HDBSCAN learner from the dbscan package.
- feat: Add OPTICS learner from the dbscan package.
- chore: Compatibility with upcoming paradox release.
- chore: Move to testthat3.
- refactor: General code refactoring.
mlr3cluster 0.1.7
CRAN release: 2023-03-10
- chore: Replace ‘clusterCrit’ measures with alternatives from cluster and fpc packages.
- fix: Remove broken unloading test.
mlr3cluster 0.1.6
CRAN release: 2022-12-22
- feat: Add states as row names to
usarreststask. - fix: Remove dictionary items after unloading package.
mlr3cluster 0.1.5
CRAN release: 2022-11-01
- feat: Add Mclust learner.
- fix: Fix error associated with new dbscan release.
mlr3cluster 0.1.3
CRAN release: 2022-04-06
- feat: Add filter to
PredictionClust. - fix: Small bug fixes.
- refactor: General code refactoring.
mlr3cluster 0.1.2
CRAN release: 2021-09-02
- feat: Add Hclust learner.
- feat: Add within sum of squares measure.
- docs: Add tests and documentation for Hclust.
- docs: Add documentation for WSS measure.
- refactor: Code factor adaptations.