13 #ifndef MLPACK_CORE_DATA_ONE_HOT_ENCODING_HPP
14 #define MLPACK_CORE_DATA_ONE_HOT_ENCODING_HPP
32 template<
typename RowType,
typename MatType>
47 const arma::Col<size_t>& indices,
48 arma::Mat<eT>& output);
62 arma::Mat<eT>& output,
69 #include "one_hot_encoding_impl.hpp"
The core includes that mlpack expects; standard C++ includes and Armadillo.
void OneHotEncoding(const RowType &labelsIn, MatType &output)
Given a set of labels of a particular datatype, convert them to binary vector.
DatasetMapper< data::IncrementPolicy > DatasetInfo
Include all of the base components required to write mlpack methods, and the main mlpack Doxygen docu...