Implementation of the Randomized SVD policy to act as a wrapper when accessing Randomized SVD from within CFType. More...
Public Member Functions | |
| RandomizedSVDPolicy (const size_t iteratedPower=0, const size_t maxIterations=2) | |
| Use randomized SVD method to perform collaborative filtering. More... | |
template < typename MatType > | |
| 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, const bool) |
| Apply Collaborative Filtering to the provided data set using the randomized SVD. More... | |
| size_t | IteratedPower () const |
| Get the size of the normalized power iterations. More... | |
| size_t & | IteratedPower () |
| Modify the size of the normalized power iterations. More... | |
| size_t | MaxIterations () const |
| Get the number of iterations. More... | |
| size_t & | MaxIterations () |
| Modify the number of iterations. More... | |
Implementation of the Randomized SVD policy to act as a wrapper when accessing Randomized SVD from within CFType.
Definition at line 27 of file randomized_svd_method.hpp.
|
inline |
Use randomized SVD method to perform collaborative filtering.
| iteratedPower | Size of the normalized power iterations (Default: rank + 2). |
| maxIterations | Number of iterations for the power method (Default: 2). |
Definition at line 38 of file randomized_svd_method.hpp.
|
inline |
Apply Collaborative Filtering to the provided data set using the randomized 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 61 of file randomized_svd_method.hpp.
References RandomizedSVD::Apply().
|
inline |
Get the size of the normalized power iterations.
Definition at line 84 of file randomized_svd_method.hpp.
|
inline |
Modify the size of the normalized power iterations.
Definition at line 86 of file randomized_svd_method.hpp.
|
inline |
Get the number of iterations.
Definition at line 89 of file randomized_svd_method.hpp.
|
inline |
Modify the number of iterations.
Definition at line 91 of file randomized_svd_method.hpp.