NMFSeed
is a constructor method that instantiate
NMFSeed
objects.NMFSeed
is a constructor method that instantiate
NMFSeed
objects.
NMF seeding methods are registered via the function
setNMFSeed
, which stores them as
NMFSeed
objects in a dedicated
registry.
removeNMFSeed
removes an NMF seeding method from
the registry.
NMFSeed(key, method, ...) setNMFSeed(..., overwrite = isLoadingNamespace(),
verbose = TRUE)
removeNMFSeed(name, ...)
access key as a single character string
specification of the seeding method, as a function that takes at least the following arguments:
uninitialised/empty NMF model,
i.e. that it has 0 rows and columns, but has already the
rank requested in the call to nmf
or
seed
.
target matrix
extra arguments
arguments passed to NMFSeed
and used to
initialise slots in the NMFSeed
object, or to pkgreg_remove
.
name of the seeding method.
logical that indicates if any existing
NMF method with the same name should be overwritten
(TRUE
) or not (FALSE
), in which case an
error is thrown.
a logical that indicates if information
about the registration should be printed (TRUE
) or
not (FALSE
).
signature(key = "character")
:
Default method simply calls new
with the
same arguments.
signature(key = "NMFSeed")
: Creates
an NMFSeed
based on a template object
(Constructor-Copy), in particular it uses the
same name.