View source: R/120_ClusteringConfig.R
| setup_SpectralLaplace | R Documentation |
Setup a SpectralLaplaceConfig object for spectral clustering with an
exponential (Laplacian) kernel, via the 'kernlab' package. The exponential
kernel decays more slowly than the Gaussian of setup_SpectralRBF and so
keeps more weight on distant pairs.
setup_SpectralLaplace(
k = 3L,
sigma = NULL,
iterations = 200L,
nystrom = NULL,
features = NULL
)
k |
Integer [2, Inf): Number of clusters. Must be no more than the number of cases. |
sigma |
Optional Numeric (0, Inf): Inverse kernel width. Unset uses 1. |
iterations |
Integer [1, Inf): Maximum number of k-means iterations run on the spectral embedding. |
nystrom |
Optional |
features |
Optional Character vector: Names of at least 2 distinct
feature columns to cluster on. |
Argument names are rtemis' own. They map to kernlab::specc() as: k ->
centers, sigma -> kpar = list(sigma) with kernel = "laplacedot",
nystrom -> nystrom.red and nystrom.sample; iterations keeps its
name.
SpectralLaplaceConfig object.
EDG
Ng AY, Jordan MI, Weiss Y (2001). On Spectral Clustering: Analysis and an Algorithm. Advances in Neural Information Processing Systems, 14, 849-856.
setup_SpectralLaplace(k = 3L, sigma = 0.5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.