14 #ifndef MLPACK_METHODS_CF_DECOMPOSITION_POLICIES_REGULARIZED_SVD_METHOD_HPP 15 #define MLPACK_METHODS_CF_DECOMPOSITION_POLICIES_REGULARIZED_SVD_METHOD_HPP 37 maxIterations(maxIterations)
56 void Apply(
const arma::mat& data,
61 const size_t maxIterations,
67 regsvd.
Apply(data, rank, w, h);
RegSVDPolicy(const size_t maxIterations=10)
Use regularized SVD method to perform collaborative filtering.
Regularized SVD is a matrix factorization technique that seeks to reduce the error on the training se...
void Apply(const arma::mat &data, const arma::sp_mat &, const size_t rank, arma::mat &w, arma::mat &h, const size_t maxIterations, const double, const bool)
Apply Collaborative Filtering to the provided data set using the regularized SVD. ...
size_t MaxIterations() const
Get the number of iterations.
The core includes that mlpack expects; standard C++ includes and Armadillo.
size_t & MaxIterations()
Modify the number of iterations.
Implementation of the Regularized SVD policy to act as a wrapper when accessing Regularized SVD from ...
void Apply(const arma::mat &data, const size_t rank, arma::mat &u, arma::mat &v)
Obtains the user and item matrices using the provided data and rank.