24 #ifndef __MLPACK_CORE_DATA_NORMALIZE_LABELS_HPP
25 #define __MLPACK_CORE_DATA_NORMALIZE_LABELS_HPP
44 arma::Col<size_t>& labels,
45 arma::Col<eT>& mapping);
57 const arma::Col<eT>& mapping,
58 arma::Col<eT>& labelsOut);
64 #include "normalize_labels_impl.hpp"
The core includes that mlpack expects; standard C++ includes and Armadillo.
void NormalizeLabels(const arma::Col< eT > &labelsIn, arma::Col< size_t > &labels, arma::Col< eT > &mapping)
Given a set of labels of a particular datatype, convert them to unsigned labels in the range [0...
void RevertLabels(const arma::Col< size_t > &labels, const arma::Col< eT > &mapping, arma::Col< eT > &labelsOut)
Given a set of labels that have been mapped to the range [0, n), map them back to the original labels...