Learn R Programming

NMF (version 0.2.2)

NMFStrategy: Factory Method for NMFStrategy Objects

Description

Creates NMFStrategy objects that wraps implementation of NMF algorithms into a unified interface.

Usage

NMFStrategy(name, method, ...)

## S3 method for class 'NMFStrategy,matrix,NMFfit': run(object, y, x, ...)

## S3 method for class 'NMFStrategy,matrix,NMF': run(object, y, x, ...)

## S3 method for class 'NMFStrategyFunction,matrix,NMFfit': run(object, y, x, ...)

## S3 method for class 'NMFStrategyIterative,matrix,NMFfit': run(object, y, x, .stop = NULL, maxIter = nmf.getOption("maxIter") %||% 2000, ...)

## S3 method for class 'NMFStrategyIterativeX,matrix,NMFfit': run(object, y, x, maxIter, ...)

## S3 method for class 'NMFStrategyOctave,matrix,NMFfit': run(object, y, x, ...)

Arguments

name
name/key of an NMF algorithm.
method
definition of the algorithm
...
extra arguments passed to new.
.stop
specification of a stopping criterion, that is used instead of the one associated to the NMF algorithm. It may be specified as:
  • the access key of a registered stopping criterion;
  • a single integer that specifies the exact number of
maxIter
maximum number of iterations to perform.
object
an object computed using some algorithm, or that describes an algorithm itself.
y
data object, e.g. a target matrix
x
a model object used as a starting point by the algorithm, e.g. a non-empty NMF model.