| evoc | R Documentation |
Performs EVoC (Embedding Vector Oriented Clustering) on the input data. Combines a UMAP-like node embedding with HDBSCAN-style density-based clustering and multi-layer persistence analysis.
evoc(
data,
knn = NULL,
n_neighbours = 15L,
knn_method = c("kmknn", "hnsw", "annoy", "nndescent", "balltree", "ivf", "exhaustive"),
nn_params = params_nn(),
evoc_params = params_evoc(),
return_knn = FALSE,
seed = 42L,
use_high_precision = NULL,
.verbose = TRUE
)
data |
Numerical matrix or data frame. The data to cluster, of shape samples x features. Will be coerced to a matrix. |
knn |
Optional |
n_neighbours |
Integer. Number of nearest neighbours for graph
construction. Defaults to |
knn_method |
Character. (Approximate) Nearest neighbour method to use.
One of |
nn_params |
Named list. Nearest neighbour search parameters, see
|
evoc_params |
Named list. EVoC algorithm parameters, see
|
return_knn |
Logical. Whether to return the kNN graph. If |
seed |
Integer. Random seed for reproducibility. Defaults to |
use_high_precision |
Optional boolean. Gives fine-grained control over
|
.verbose |
Logical. Controls verbosity. Defaults to |
An Evoc S3 object (see print.Evoc, best_membership,
get_layer).
d <- manifold_synthetic_data(type = "clusters", n_samples = 500L)
res <- evoc(d$data, .verbose = FALSE)
res
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.