14 #ifndef MLPACK_CORE_DATA_NORMALIZE_LABELS_HPP 15 #define MLPACK_CORE_DATA_NORMALIZE_LABELS_HPP 32 template<
typename eT,
typename RowType>
34 arma::Row<size_t>& labels,
35 arma::Col<eT>& mapping);
47 const arma::Col<eT>& mapping,
48 arma::Row<eT>& labelsOut);
54 #include "normalize_labels_impl.hpp" void NormalizeLabels(const RowType &labelsIn, arma::Row< 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...
Linear algebra utility functions, generally performed on matrices or vectors.
The core includes that mlpack expects; standard C++ includes and Armadillo.
void RevertLabels(const arma::Row< size_t > &labels, const arma::Col< eT > &mapping, arma::Row< eT > &labelsOut)
Given a set of labels that have been mapped to the range [0, n), map them back to the original labels...