Base class for storing MF results.
It contains generic functions and structure for handling the results of MF algorithms. It contains a slot with the fitted MF model and data about parameters and methods used for factorization.
The purpose of this class is to handle in a generic way the results of MF algorithms and acts as a wrapper for the fitted model. Its attribute attribute:: fit contains the fitted model and its configuration can therefore be used directly in following calls to factorization.
The fitted NMF model
NMF method of factorization.
The number of iterations performed.
The number of NMF runs performed.
The seeding method used to seed the algorithm that fitted NMF model.
Extra parameters specific to the algorithm used to fit the model.
Return the matrix of basis vectors.
Return the matrix of mixture coefficients.
Parameters: | idx (str with values ‘coef’ or ‘coef1’ (int value of 0 or 1, respectively)) – Name of the matrix (coefficient) matrix. Used only in the multiple NMF model. |
---|
Return the loss function value. If metric is not supplied, final objective function value associated to the MF algorithm is returned.
Parameters: |
|
---|
Return the MF algorithm model.
Compute the estimated target matrix according to the MF algorithm model.
Parameters: | idx (str with values ‘coef’ or ‘coef1’ (int value of 0 or 1, respectively)) – Name of the matrix (coefficient) matrix. Used only in the multiple NMF model. |
---|
Return generic set of measures to evaluate the quality of the factorization.
Parameters: | idx (str with values ‘coef’ or ‘coef1’ (int value of 0 or 1, respectively)) – Name of the matrix (coefficient) matrix. Used only in the multiple NMF model. |
---|