From c0ca811aaed8e90ebf946a9c2269b1d15138d248 Mon Sep 17 00:00:00 2001 From: Maximilian Muecke Date: Mon, 22 Apr 2024 18:05:16 +0200 Subject: [PATCH] fix: set dbscan and co to density instead or partitioning --- R/LearnerClustDBSCAN.R | 2 +- R/LearnerClustDBSCANfpc.R | 2 +- R/LearnerClustHDBSCAN.R | 2 +- R/LearnerClustOPTICS.R | 2 +- R/zzz.R | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/R/LearnerClustDBSCAN.R b/R/LearnerClustDBSCAN.R index 4490d955..fe1a9cd1 100644 --- a/R/LearnerClustDBSCAN.R +++ b/R/LearnerClustDBSCAN.R @@ -42,7 +42,7 @@ LearnerClustDBSCAN = R6Class("LearnerClustDBSCAN", feature_types = c("logical", "integer", "numeric"), predict_types = "partition", param_set = param_set, - properties = c("partitional", "exclusive", "complete"), + properties = c("density", "exclusive", "complete"), packages = "dbscan", man = "mlr3cluster::mlr_learners_clust.dbscan", label = "Density-Based Clustering" diff --git a/R/LearnerClustDBSCANfpc.R b/R/LearnerClustDBSCANfpc.R index acc7da4f..c9f8f31e 100644 --- a/R/LearnerClustDBSCANfpc.R +++ b/R/LearnerClustDBSCANfpc.R @@ -53,7 +53,7 @@ LearnerClustDBSCANfpc = R6Class("LearnerClustDBSCANfpc", feature_types = c("logical", "integer", "numeric"), predict_types = "partition", param_set = param_set, - properties = c("partitional", "exclusive", "complete"), + properties = c("density", "exclusive", "complete"), man = "mlr3cluster::mlr_learners_clust.dbscan_fpc", label = "Density-Based Clustering with fpc" ) diff --git a/R/LearnerClustHDBSCAN.R b/R/LearnerClustHDBSCAN.R index 1bc15566..3f179940 100644 --- a/R/LearnerClustHDBSCAN.R +++ b/R/LearnerClustHDBSCAN.R @@ -33,7 +33,7 @@ LearnerClustHDBSCAN = R6Class("LearnerClustHDBSCAN", feature_types = c("logical", "integer", "numeric"), predict_types = "partition", param_set = param_set, - properties = c("partitional", "exclusive", "complete"), + properties = c("density", "exclusive", "complete"), packages = "dbscan", man = "mlr3cluster::mlr_learners_clust.hdbscan", label = "HDBSCAN Clustering" diff --git a/R/LearnerClustOPTICS.R b/R/LearnerClustOPTICS.R index 1c4b1bbf..947b0cc2 100644 --- a/R/LearnerClustOPTICS.R +++ b/R/LearnerClustOPTICS.R @@ -41,7 +41,7 @@ LearnerClustOPTICS = R6Class("LearnerClustOPTICS", feature_types = c("logical", "integer", "numeric"), predict_types = "partition", param_set = param_set, - properties = c("partitional", "exclusive", "complete"), + properties = c("density", "exclusive", "complete"), packages = "dbscan", man = "mlr3cluster::mlr_learners_clust.optics", label = "OPTICS Clustering" diff --git a/R/zzz.R b/R/zzz.R index 8e898f4f..42c598e9 100644 --- a/R/zzz.R +++ b/R/zzz.R @@ -24,7 +24,7 @@ register_mlr3 = function() { x$task_col_roles$clust = x$task_col_roles$regr x$task_properties$clust = x$task_properties$regr x$learner_properties$clust = c( - "missings", "partitional", "hierarchical", "exclusive", "overlapping", "fuzzy", "complete", "partial" + "missings", "partitional", "hierarchical", "exclusive", "overlapping", "fuzzy", "complete", "partial", "density" ) # measure