normalize_labels.hpp

Go to the documentation of this file.
00001 
00024 #ifndef __MLPACK_CORE_DATA_NORMALIZE_LABELS_HPP
00025 #define __MLPACK_CORE_DATA_NORMALIZE_LABELS_HPP
00026 
00027 #include <mlpack/core.hpp>
00028 
00029 namespace mlpack {
00030 namespace data {
00031 
00042 template<typename eT>
00043 void NormalizeLabels(const arma::Col<eT>& labelsIn,
00044                      arma::Col<size_t>& labels,
00045                      arma::Col<eT>& mapping);
00046 
00055 template<typename eT>
00056 void RevertLabels(const arma::Col<size_t>& labels,
00057                   const arma::Col<eT>& mapping,
00058                   arma::Col<eT>& labelsOut);
00059 
00060 }; // namespace data
00061 }; // namespace mlpack
00062 
00063 // Include implementation.
00064 #include "normalize_labels_impl.hpp"
00065 
00066 #endif

Generated on 13 Aug 2014 for MLPACK by  doxygen 1.6.1