mlpack 3.4.2
no_normalization.hpp
Go to the documentation of this file.
1
13#ifndef MLPACK_METHODS_CF_NORMALIZATION_NO_NORMALIZATION_HPP
14#define MLPACK_METHODS_CF_NORMALIZATION_NO_NORMALIZATION_HPP
15
16#include <mlpack/prereqs.hpp>
17
18namespace mlpack {
19namespace cf {
20
26{
27 public:
28 // Empty constructor.
30
36 template<typename MatType>
37 inline void Normalize(const MatType& /* data */) const { }
38
46 inline double Denormalize(const size_t /* user */,
47 const size_t /* item */,
48 const double rating) const
49 {
50 return rating;
51 }
52
59 inline void Denormalize(const arma::Mat<size_t>& /* combinations */,
60 const arma::vec& /* predictions */) const
61 { }
62
66 template<typename Archive>
67 void serialize(Archive& /* ar */, const unsigned int /* version */) { }
68};
69
70} // namespace cf
71} // namespace mlpack
72
73#endif
This normalization class doesn't perform any normalization.
double Denormalize(const size_t, const size_t, const double rating) const
Do nothing.
void Denormalize(const arma::Mat< size_t > &, const arma::vec &) const
Do nothing.
void Normalize(const MatType &) const
Do nothing.
void serialize(Archive &, const unsigned int)
Serialization.
Linear algebra utility functions, generally performed on matrices or vectors.
Definition: cv.hpp:1
The core includes that mlpack expects; standard C++ includes and Armadillo.