This normalization class performs user mean normalization on raw ratings. More...
Public Member Functions | |
| UserMeanNormalization () | |
| 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. More... | |
| 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... | |
template < typename Archive > | |
| void | serialize (Archive &ar, const uint32_t) |
| Serialization. More... | |
This normalization class performs user mean normalization on raw ratings.
An example of how to use UserMeanNormalization in CF is shown below:
Definition at line 39 of file user_mean_normalization.hpp.
|
inline |
Definition at line 43 of file user_mean_normalization.hpp.
|
inline |
Denormalize computed rating by adding user mean.
| user | User ID. |
| * | (item) Item ID. |
| rating | Computed rating before denormalization. |
Definition at line 130 of file user_mean_normalization.hpp.
|
inline |
Denormalize computed rating by adding user mean.
| combinations | User/Item combinations. |
| predictions | Predicted ratings for each user/item combination. |
Definition at line 143 of file user_mean_normalization.hpp.
|
inline |
Return user mean.
Definition at line 156 of file user_mean_normalization.hpp.
|
inline |
Normalize the data by subtracting user mean from each of existing ratings.
| data | Input dataset in the form of coordinate list. |
Definition at line 50 of file user_mean_normalization.hpp.
|
inline |
Normalize the data by subtracting user mean from each of existing rating.
| cleanedData | Input data as a sparse matrix. |
Definition at line 90 of file user_mean_normalization.hpp.
|
inline |
Serialization.
Definition at line 162 of file user_mean_normalization.hpp.