-
Notifications
You must be signed in to change notification settings - Fork 32
Tunable parameters for Density-based (DBSCAN) and Model-based clustering (GMMs) #389
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 4 commits
2c6b8ae
b87eb2d
89f9100
5a324b0
8186fa6
b5e2265
2a8efd8
807f2e0
3451389
b835a47
766c6ac
dc15fa6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| #' Parameter to control circular or ellipsoidal cluster shapes | ||
| #' | ||
| #' Used in `tidyclust::gm_clust()`. | ||
| #' | ||
| #' @param values A vector of possible values (TRUE or FALSE). | ||
| #' @examples | ||
| #' circular() | ||
| #' @export | ||
| circular <- function(values = c(TRUE, FALSE)) { | ||
| new_qual_param( | ||
| type = "logical", | ||
| values = values, | ||
| label = c(circular = "Circular cluster shapes?"), | ||
| finalize = NULL | ||
| ) | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| #' Minimum number of nearby points to be considered a core-point | ||
| #' | ||
| #' Used in `tidyclust::db_clust` model. | ||
brendad8 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| #' | ||
| #' @inheritParams Laplace | ||
| #' @examples | ||
| #' min_points() | ||
| #' @export | ||
| min_points <- function(range = c(3L, 50L), trans = NULL) { | ||
| new_quant_param( | ||
| type = "integer", | ||
| range = range, | ||
| inclusive = c(TRUE, TRUE), | ||
| trans = trans, | ||
| label = c(min_points = "Min Points"), | ||
brendad8 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| finalize = NULL | ||
| ) | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| #' Radius used to determine core-points and cluster assignments | ||
| #' | ||
| #' Used in `tidyclust::db_clust`. | ||
brendad8 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| #' | ||
| #' @inheritParams Laplace | ||
| #' @examples | ||
| #' radius() | ||
| #' @export | ||
| radius <- function(range = c(-2, 2), trans = transform_log10()) { | ||
| new_quant_param( | ||
| type = "double", | ||
| range = range, | ||
| inclusive = c(TRUE, TRUE), | ||
| trans = trans, | ||
| label = c(radius = "Radius"), | ||
| finalize = NULL | ||
| ) | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| #' Parameter to control whether clusters share the same orientation in the predictor space | ||
| #' (Only applicable if zero_covariance = FALSE) | ||
brendad8 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| #' | ||
| #' Used in `tidyclust::gm_clust()`. | ||
| #' | ||
| #' @param values A vector of possible values (TRUE or FALSE). | ||
| #' @examples | ||
| #' shared_orientation() | ||
| #' @export | ||
| shared_orientation <- function(values = c(TRUE, FALSE)) { | ||
| new_qual_param( | ||
| type = "logical", | ||
| values = values, | ||
| label = c(shared_orientation = "Shared orientation between clusters?"), | ||
| finalize = NULL | ||
| ) | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| #' Parameter to control whether clusters share the same shape in the predictor space | ||
| #' (Only applicable if circular = FALSE) | ||
| #' | ||
| #' Used in `tidyclust::gm_clust()`. | ||
| #' | ||
| #' @param values A vector of possible values (TRUE or FALSE). | ||
| #' @examples | ||
| #' shared_shape() | ||
| #' @export | ||
| shared_shape <- function(values = c(TRUE, FALSE)) { | ||
| new_qual_param( | ||
| type = "logical", | ||
| values = values, | ||
| label = c(shared_shape = "Shared shape between clusters?"), | ||
| finalize = NULL | ||
| ) | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| #' Parameter to control whether clusters share the same size in the predictor space | ||
| #' | ||
| #' Used in `tidyclust::gm_clust()`. | ||
| #' | ||
| #' @param values A vector of possible values (TRUE or FALSE). | ||
| #' @examples | ||
| #' shared_size() | ||
| #' @export | ||
| shared_size <- function(values = c(TRUE, FALSE)) { | ||
| new_qual_param( | ||
| type = "logical", | ||
| values = values, | ||
| label = c(shared_size = "Shared size between clusters?"), | ||
| finalize = NULL | ||
| ) | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| #' Parameter to control whether clusters have zero covariance between predictors | ||
| #' | ||
| #' Used in `tidyclust::gm_clust()`. | ||
| #' | ||
| #' @param values A vector of possible values (TRUE or FALSE). | ||
| #' @examples | ||
| #' zero_covariance() | ||
| #' @export | ||
| zero_covariance <- function(values = c(TRUE, FALSE)) { | ||
| new_qual_param( | ||
| type = "logical", | ||
| values = values, | ||
| label = c(zero_covariance = "Zero covariance between predictors?"), | ||
| finalize = NULL | ||
| ) | ||
| } |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Uh oh!
There was an error while loading. Please reload this page.