seed: Interface for NMF Seeding Methods

Description Usage Arguments Value Methods (by generic)

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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
seed(x, model, method, ...)

## S4 method for signature 'mMatrix,NMF,NMFSeed'
seed(x, model, method, rng, ...)

## S4 method for signature 'ANY,ANY,'function''
seed(x, model, method, name, ...)

## S4 method for signature 'ANY,ANY,missing'
seed(x, model, method, ...)

## S4 method for signature 'ANY,ANY,'NULL''
seed(x, model, method, ...)

## S4 method for signature 'ANY,ANY,numeric'
seed(x, model, method, ...)

## S4 method for signature 'ANY,ANY,character'
seed(x, model, method, ...)

## S4 method for signature 'ANY,list,NMFSeed'
seed(x, model, method, ...)

## S4 method for signature 'ANY,numeric,NMFSeed'
seed(x, model, method, ...)

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.

Methods (by generic)


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