|
void | Normalize (arma::mat &data) |
| Normalize the data to zero mean and one standard deviation. More...
|
|
void | Normalize (arma::sp_mat &cleanedData) |
| Normalize the data to zero mean and one standard deviation. More...
|
|
double | Denormalize (const size_t, const size_t, const double rating) const |
| Denormalize computed rating by adding mean and multiplying stddev. More...
|
|
void | Denormalize (const arma::Mat< size_t > &, arma::vec &predictions) const |
| Denormalize computed rating by adding mean and multiplying stddev. More...
|
|
double | Mean () const |
| Return mean.
|
|
double | Stddev () const |
| Return stddev.
|
|
template<typename Archive > |
void | serialize (Archive &ar, const uint32_t) |
| Serialization.
|
|
This normalization class performs z-score normalization on raw ratings.
An example of how to use ZScoreNormalization in CF is shown below:
extern arma::mat data;
extern arma::Col<size_t> users;
arma::Mat<size_t> recommendations;
CFType<NMFPolicy, ZScoreNormalization> cf(data);
cf.GetRecommendations(10, recommendations);