|
nnlib
GPU-accelerated, C/C++ neural network library.
|
Source file containing the definition of the oneHotEncode() method. More...
Functions | |
| int | indexOf (float value, const std::set< float > &set) |
| Return the index of a value in a set. More... | |
| sTensor | oneHotEncode (const sTensor &vector) |
| One hot encode a vector of data. More... | |
Source file containing the definition of the oneHotEncode() method.
| int indexOf | ( | float | value, |
| const std::set< float > & | set | ||
| ) |
Return the index of a value in a set.
| value | The value to look for. |
| set | The set to look for value in. |
value in set or -1 if the value is not found. | sTensor oneHotEncode | ( | const sTensor & | vector | ) |
One hot encode a vector of data.
| vector | The vector to encode. |