Description Usage Arguments Value Examples
KMeans on the PHATE potential Clustering on the PHATE operator as introduced in Moon et al. This is similar to spectral clustering.
1 | cluster_phate(phate, k = 8, seed = NULL)
|
phate |
|
k |
Number of clusters (default: 8) |
seed |
Random seed for kmeans (default: NULL) |
clusters Integer vector of cluster assignments
1 2 3 4 5 6 7 8 9 10 11 12 13 | if (reticulate::py_module_available("phate")) {
# Load data
# data(tree.data)
# We use a smaller tree to make examples run faster
data(tree.data.small)
# Run PHATE
phate.tree <- phate(tree.data.small$data)
# Clustering
cluster_phate(phate.tree)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.