Description Usage Arguments Value Examples
View source: R/clustering_err.R
Calculate clustering error rate by using estimations
1 | clustering_err(K, da, em_res, pi0, mu, Sigma, idx)
|
da |
Data for clustering |
K |
Selected number of clusters |
em_res |
Results list returned by an EM algorithm |
pi0 |
True mixing weights, if known |
mu |
True clusters centers, if known |
Sigma |
True clusters covariance, if known |
idx |
True clusters labels, if known |
cluster_err |
clustering error rate |
mean_err |
estimation error of clusters centers |
wt_err |
estimation error of clusters mixing weights |
cov_err |
estimation error of clusters covariance |
1 2 3 | res_clemm = clemm_em(dat, K, u, iter=800, opts=opts, init=init)
clemm_err = clustering_err(K, dat, em_res=res_clemm, pi0=pi0, mu=da$mu, Sigma=da$Sigma, idx=idx)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.