mlpack
3.1.0
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
src
mlpack
core
data
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
prereqs.hpp
The core includes that mlpack expects; standard C++ includes and Armadillo.
mlpack::data::OneHotEncoding
void OneHotEncoding(const RowType &labelsIn, arma::Mat< eT > &output)
Given a set of labels of a particular datatype, convert them to binary vector.
Generated by
1.8.5