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 
18 namespace mlpack {
19 namespace 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 uint32_t /* version */) { }
68 };
69 
70 } // namespace cf
71 } // namespace mlpack
72 
73 #endif
void serialize(Archive &, const uint32_t)
Serialization.
Linear algebra utility functions, generally performed on matrices or vectors.
The core includes that mlpack expects; standard C++ includes and Armadillo.
void Normalize(const MatType &) const
Do nothing.
double Denormalize(const size_t, const size_t, const double rating) const
Do nothing.
This normalization class doesn&#39;t perform any normalization.
void Denormalize(const arma::Mat< size_t > &, const arma::vec &) const
Do nothing.