|
void | Normalize (arma::mat &data) |
| Normalize the data by subtracting user mean from each of existing ratings. More...
|
|
void | Normalize (arma::sp_mat &cleanedData) |
| Normalize the data by subtracting user mean from each of existing rating. More...
|
|
double | Denormalize (const size_t user, const size_t, const double rating) const |
| Denormalize computed rating by adding user mean. More...
|
|
void | Denormalize (const arma::Mat< size_t > &combinations, arma::vec &predictions) const |
| Denormalize computed rating by adding user mean. More...
|
|
const arma::vec & | Mean () const |
| Return user mean.
|
|
template<typename Archive > |
void | serialize (Archive &ar, const uint32_t) |
| Serialization.
|
|
This normalization class performs user mean normalization on raw ratings.
An example of how to use UserMeanNormalization in CF is shown below:
extern arma::mat data;
extern arma::Col<size_t> users;
arma::Mat<size_t> recommendations;
CFType<NMFPolicy, UserMeanNormalization> cf(data);
cf.GetRecommendations(10, recommendations);