ramanspy.analysis.decompose.NMF
- class ramanspy.analysis.decompose.NMF(*, n_components, **kwargs)[source]
Non-negative matrix factorisation (NMF).
Data must be non-negative. If negative values are present, one can use
ramanspy.preprocessing.normalise.MinMaxto scale the data.- Parameters:
n_components (int) – The number of components.
**kwargs – Check original implementation for additional parameters.
Note
Implementation and documentation based on`scikit-learn <https://scikit-learn.org>`_.
Methods
__init__(*, n_components, **kwargs)apply(raman_objects)Applies the defined analysis method on the Raman spectroscopic objects provided.