# show all the NMF models available (i.e. the classes that inherit from class NMF)
nmf.models()
# show all the built-in NMF models available
nmf.models(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 newNMF (see ?newNMF)
newNMF(3)
newNMF(3, model='NMFns')
Run the code above in your browser using DataLab