Description Usage Arguments Slots Methods (by generic)
This class implements a simple wrapper strategy object that defines a unified interface to seeding methods, that are used to initialise NMF models before fitting them with any NMF algorithm.
1 2 3 4 5 6 7 8 |
object |
an object of class |
value |
object whose value is used to modify properties of the given object. See details for each method. |
name
character string giving the name of the seeding strategy
method
workhorse function that implements the seeding strategy.
It must have signature (object="NMF", x="matrix", ...)
and initialise
the NMF model object
with suitable values for fitting the target
matrix x
.
algorithm:
algorithm(object = NMFSeed)
: Returns the workhorse function of the seeding method described by object
.
algorithm<-:
algorithm<-(object = NMFSeed,value = function)
: Sets the workhorse function of the seeding method described by object
.
NMFSeed:
NMFSeed(key = NMFSeed)
: Creates an NMFSeed
based on a template object (Constructor-Copy),
in particular it uses the same name.
seed:
seed(x = mMatrix,model = NMF,method = NMFSeed)
: This is the workhorse method that seeds an NMF model object using a given
seeding strategy defined by an NMFSeed
object, to fit a given
target matrix.
seed(x = ANY,model = list,method = NMFSeed)
: Seed a model using the elements in model
to instantiate it with
nmfModel
.
seed(x = ANY,model = numeric,method = NMFSeed)
: Seeds a standard NMF model (i.e. of class NMFstd
) of rank
model
.
show:
show(object = NMFSeed)
: Show method for objects of class NMFSeed
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.