deviance: Distances and Objective Functions

Description Usage Arguments Value Methods (by generic) See Also

Description

The NMF package defines methods for the generic deviance from the package stats, to compute approximation errors between NMF models and matrices, using a variety of objective functions.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
deviance(object, ...)

## S4 method for signature 'NMF'
deviance(object, y, method = c("", "KL", "euclidean"), ...)

nmfDistance(method = c("", "KL", "euclidean"))

## S4 method for signature 'NMFfit'
deviance(object, y, method, ...)

## S4 method for signature 'NMFfitX'
deviance(object, ...)

## S4 method for signature 'NMFStrategy'
deviance(object, x, y, ...)

Arguments

object

an object that inherit from NMF.

...

extra parameters passed to the objective function.

y

a matrix compatible with the NMF model object, i.e. y must have the same dimension as fitted(object).

method

a character string or a function with signature (x="NMF", y="matrix", ...) that implements a distance measure between an NMF model x and a target matrix y, i.e. an objective function to use to compute the deviance. In deviance, it is passed to nmfDistance to get the function that effectively computes the deviance.

x

an NMF model that estimates y.

Value

deviance returns a nonnegative numerical value

nmfDistance returns a function with least two arguments: an NMF model and a matrix.

Methods (by generic)

See Also

Other stats: residuals()

Other stats: residuals()


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