assess: Assessing and Comparing NMF Models

Description Usage Arguments Details Methods (by generic) Examples

Description

The NMF package defines summary methods for different classes of objects, which helps assessing and comparing the quality of NMF models by computing a set of quantitative measures, e.g. with respect to their ability to recover known classes and/or the original target matrix.

The most useful methods are for classes NMF, NMFfit, NMFfitX and NMFList, which compute summary measures for, respectively, a single NMF model, a single fit, a multiple-run fit and a list of heterogenous fits performed with the function nmf.

The following measures are computed:

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
summary(object, ...)

## S4 method for signature 'NMF'
summary(
  object,
  class,
  target,
  with.silhouette = c("both", "features", "samples", "none")
)

## S3 method for class 'NMF.rank'
summary(object, ...)

Arguments

object

an NMF object. See available methods in section Methods.

...

extra arguments passed to the next summary method.

class

known classes/cluster of samples specified in one of the formats that is supported by the functions entropy and purity.

target

target matrix specified in one of the formats supported by the functions rss and evar

with.silhouette

indicates which silhouette average width should be computed. Its value is partially matched against: 'both', 'features', 'samples' or 'none'.

Details

Due to the somehow hierarchical structure of the classes mentionned in Description, their respective summary methods call each other in chain, each super-class adding some extra measures, only relevant for objects of a specific class.

sparseness

Sparseness of the factorization computed by the function sparseness.

entropy

Purity of the clustering, with respect to known classes, computed by the function purity.

entropy

Entropy of the clustering, with respect to known classes, computed by the function entropy.

RSS

Residual Sum of Squares computed by the function rss.

evar

Explained variance computed by the function evar.

Methods (by generic)

Examples

1
2
3
4
5
6
# random NMF model
x <- rnmf(3, 20, 12)
summary(x)
summary(x, gl(3, 4))
summary(x, target=rmatrix(x))
summary(x, gl(3,4), target=rmatrix(x))

renozao/NMF documentation built on June 14, 2020, 9:35 p.m.