Implementation of the SVD complete incremental policy to act as a wrapper when accessing SVD complete decomposition from within CFType.
More...
|
| template<typename MatType > |
| void | Apply (const MatType &, const arma::sp_mat &cleanedData, const size_t rank, const size_t maxIterations, const double minResidue, const bool mit) |
| | Apply Collaborative Filtering to the provided data set using the SVD complete incremental policy. More...
|
| |
| template<typename NeighborSearchPolicy > |
| void | GetNeighborhood (const arma::Col< size_t > &users, const size_t numUsersForSimilarity, arma::Mat< size_t > &neighborhood, arma::mat &similarities) const |
| | Get the neighborhood and corresponding similarities for a set of users. More...
|
| |
| double | GetRating (const size_t user, const size_t item) const |
| | Return predicted rating given user ID and item ID. More...
|
| |
| void | GetRatingOfUser (const size_t user, arma::vec &rating) const |
| | Get predicted ratings for a user. More...
|
| |
| const arma::mat & | H () const |
| | Get the User Matrix. More...
|
| |
| template<typename Archive > |
| void | serialize (Archive &ar, const unsigned int) |
| | Serialization. More...
|
| |
| const arma::mat & | W () const |
| | Get the Item Matrix. More...
|
| |
Implementation of the SVD complete incremental policy to act as a wrapper when accessing SVD complete decomposition from within CFType.
An example of how to use SVDCompletePolicy in CF is shown below:
extern arma::mat data;
extern arma::Col<size_t> users;
arma::Mat<size_t> recommendations;
CFType<SVDCompletePolicy> cf(data);
cf.GetRecommendations(10, recommendations);
Definition at line 44 of file svd_complete_method.hpp.