Implementation of the Regularized SVD policy to act as a wrapper when accessing Regularized SVD from within CFType. More...
Public Member Functions | |
| RegSVDPolicy (const size_t maxIterations=10) | |
| Use regularized SVD method to perform collaborative filtering. More... | |
| 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. More... | |
| size_t | MaxIterations () const |
| Get the number of iterations. More... | |
| size_t & | MaxIterations () |
| Modify the number of iterations. More... | |
Implementation of the Regularized SVD policy to act as a wrapper when accessing Regularized SVD from within CFType.
Definition at line 27 of file regularized_svd_method.hpp.
|
inline |
Use regularized SVD method to perform collaborative filtering.
| maxIterations | Number of iterations for the power method (Default: 2). |
Definition at line 36 of file regularized_svd_method.hpp.
|
inline |
Apply Collaborative Filtering to the provided data set using the regularized SVD.
| data | Data matrix: dense matrix (coordinate lists) or sparse matrix(cleaned). |
| cleanedData | item user table in form of sparse matrix. |
| rank | Rank parameter for matrix factorization. |
| w | First matrix formed after decomposition. |
| h | Second matrix formed after decomposition. |
| maxIterations | Maximum number of iterations. |
| minResidue | Residue required to terminate. |
| mit | Whether to terminate only when maxIterations is reached. |
Definition at line 56 of file regularized_svd_method.hpp.
References RegularizedSVD< OptimizerType >::Apply().
|
inline |
Get the number of iterations.
Definition at line 71 of file regularized_svd_method.hpp.
|
inline |
Modify the number of iterations.
Definition at line 73 of file regularized_svd_method.hpp.