one_hot_encoding.hpp
Go to the documentation of this file.
1 
13 #ifndef MLPACK_CORE_DATA_ONE_HOT_ENCODING_HPP
14 #define MLPACK_CORE_DATA_ONE_HOT_ENCODING_HPP
15 
16 #include <mlpack/prereqs.hpp>
17 
18 namespace mlpack {
19 namespace data {
20 
31 template<typename eT, typename RowType>
32 void OneHotEncoding(const RowType& labelsIn,
33  arma::Mat<eT>& output);
34 
35 } // namespace data
36 } // namespace mlpack
37 
38 // Include implementation.
39 #include "one_hot_encoding_impl.hpp"
40 
41 #endif
strip_type.hpp
Definition: add_to_po.hpp:21
The core includes that mlpack expects; standard C++ includes and Armadillo.
void OneHotEncoding(const RowType &labelsIn, arma::Mat< eT > &output)
Given a set of labels of a particular datatype, convert them to binary vector.