NMFSeed-class {NMF} | R Documentation |
Base class that defines the interface for NMF seeding methods.
Description
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.
Slots
- 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 modelobject
with suitable values for fitting the target matrixx
.
Methods
- algorithm
signature(object = "NMFSeed")
: Returns the workhorse function of the seeding method described byobject
.- algorithm<-
signature(object = "NMFSeed", value = "function")
: Sets the workhorse function of the seeding method described byobject
.- NMFSeed
signature(key = "NMFSeed")
: Creates anNMFSeed
based on a template object (Constructor-Copy), in particular it uses the same name.- show
signature(object = "NMFSeed")
: Show method for objects of classNMFSeed