| summary.nmfkc | R Documentation |
nmfkcProduces a summary of an nmfkc object, including matrix dimensions,
runtime, fit statistics, and diagnostics.
## S3 method for class 'nmfkc'
summary(object, ...)
object |
An object of class |
... |
Additional arguments (currently unused). |
Separability measures how close the basis is to having an anchor
row for every basis – a row of X that carries that basis alone. For
each basis q take the largest share it has in any row,
\max_j \tilde x_{jq} / \sum_r \tilde x_{jr}, with \tilde X the
basis rescaled so that its columns sum to one (so the value does not depend
on X.restriction); these are anchor.purity, attained at rows
anchor.row. The separability is their minimum: 1 when every basis
has a row of its own, 1/Q when every row mixes all bases equally, and
NA for rank = 1. The same three values are stored on the fit,
in fit$criterion.
Anchors for every basis, together with \mathrm{rank}(B) = Q, make the
factorization unique up to scale, so a value near 1 says the solution is
nearly unique. A fit with X.anchor scores exactly 1. The measure
looks at X only, however: zeros in B or in \Theta can pin
the solution as well, so a low value does not show that it is not unique.
An object of class summary.nmfkc, containing summary statistics.
Among them, separability, anchor.purity and
anchor.row; see Details.
nmfkc, nmfkc.inference, plot.nmfkc
Y <- matrix(cars$dist, nrow = 1)
A <- rbind(1, cars$speed)
result <- nmfkc(Y, A, rank = 1)
summary(result)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.