13 #ifndef MLPACK_METHODS_CF_DECOMPOSITION_POLICIES_NMF_METHOD_HPP 14 #define MLPACK_METHODS_CF_DECOMPOSITION_POLICIES_NMF_METHOD_HPP 45 template<
typename MatType>
47 const arma::sp_mat& cleanedData,
51 const size_t maxIterations,
52 const double minResidue,
62 nmf.Apply(cleanedData, rank, w, h);
70 nmf.
Apply(cleanedData, rank, w, h);
This class implements AMF (alternating matrix factorization) on the given matrix V.
This initialization rule for AMF simply fills the W and H matrices with uniform random noise in [0...
The core includes that mlpack expects; standard C++ includes and Armadillo.
Implementation of the NMF policy to act as a wrapper when accessing NMF from within CFType...
This class implements a simple residue-based termination policy.
This class implements a method titled 'Alternating Least Squares' described in the following paper: ...
double Apply(const MatType &V, const size_t r, arma::mat &W, arma::mat &H)
Apply Alternating Matrix Factorization to the provided matrix.
This termination policy only terminates when the maximum number of iterations has been reached...
void Apply(const MatType &, const arma::sp_mat &cleanedData, const size_t rank, arma::mat &w, arma::mat &h, const size_t maxIterations, const double minResidue, const bool mit)
Apply Collaborative Filtering to the provided dataset using NMF method.