| nmfkc.criterion | R Documentation |
nmfkc.criterion computes the effective rank, clustering-quality
measures (silhouette, CPCC, dist.cor), and the clustering-crispness
statistic (B.prob.max.mean) from a fitted nmfkc model.
This function can be called on a model that was fitted with
detail = "fast" or detail = "minimal" to compute the
full set of criteria afterwards.
nmfkc.criterion(object, Y, detail = c("full", "fast", "minimal"), ...)
object |
An object of class |
Y |
The original observation matrix (P x N) used for fitting. |
detail |
Character string controlling the level of computation:
|
... |
Additional arguments: |
A list with components:
R-squared between Y and XB.
Residual standard deviation.
Mean absolute error.
Column-normalized coefficient matrix (soft-clustering probabilities).
Hard clustering labels (argmax of B.prob per column).
Row-normalized basis matrix.
Hard clustering labels per row of X.
Named list: B.prob.max.mean, effective.rank, silhouette, CPCC, dist.cor.
nmfkc, nmfkc.rank
Y <- t(iris[, -5])
res <- nmfkc(Y, rank = 3, detail = "fast")
crit <- nmfkc.criterion(res, Y)
crit$criterion$silhouette
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.