
Last chance! 50% off unlimited learning
Sale ends in
NMF
makes it easy to develop new models that integrates well into
the general framework implemented by the NMF package.
Following a few simple guidelines, new models benefit from all the functionalities
available to built-in NMF models -- that derive themselves from class NMF
.
See section Defining new NMF models below.
See section NMFstd
, references and links therein for details on
the standard NMF model and its -- built-in -- extensions.NMF
is virtual, no object of class NMF
can be instantiated,
only objects from its sub-classes. However, those objects are sometimes shortly referred
in the documentation as "NMF
objects" instead of "objects that inherits from class NMF
".
For built-in models or for models that inherit from the standard model class NMFstd
,
the factory method nmfModel
enables to easily create valid NMF
objects in a variety of common situations.
See nmfModel
for more details.nmf-methods
.
Built-in NMF models and factory method in nmfModel
.
Method seed
to set NMF objects with values suitable to start
algorithms with.# show all the NMF models available (i.e. the classes that inherit from class NMF)
nmfModel()
# show all the built-in NMF models available
nmfModel(builtin.only=TRUE)
# class NMF is a virtual class so cannot be instantiated:
# the following generates an error
new('NMF')
# To instantiate a NMF model, use factory method nmfModel. see ?nmfModel
nmfModel(3)
nmfModel(3, model='NMFns')
Run the code above in your browser using DataLab