NMF (version 0.16.1)

seed: Interface for NMF Seeding Methods

Description

The function seed provides a single interface for calling all seeding methods used to initialise NMF computations. These methods at least set the basis and coefficient matrices of the initial object to valid nonnegative matrices. They will be used as a starting point by any NMF algorithm that accept initialisation.

IMPORTANT: this interface is still considered experimental and is subject to changes in future release.

Usage

seed(x, model, method, ...)

## S3 method for class 'matrix,NMF,NMFSeed': seed(x, model, method, rng, ...)

## S3 method for class 'ANY,ANY,function': seed(x, model, method, name, ...)

Arguments

x
target matrix one wants to approximate with NMF
model
specification of the NMF model, e.g., the factorization rank.
method
specification of a seeding method. See each method for details on the supported formats.
...
extra to allow extensions and passed down to the actual seeding method.
rng
rng setting to use. If not missing the RNG settings are set and restored on exit using setRNG.

All arguments in ... are passed to teh seeding strategy.

name
optional name of the seeding method for custom seeding strategies.

Value

  • an NMFfit object.