nnlib
GPU-accelerated, C/C++ neural network library.
Functions
onehot_encode.h File Reference

Header file containing the declaration of the oneHotEncode() method. More...

#include "tensor.h"

Go to the source code of this file.

Functions

sTensor oneHotEncode (const sTensor &vector)
 One hot encode a vector of data. More...
 

Detailed Description

Header file containing the declaration of the oneHotEncode() method.

Author
Jan Warchocki
Date
07 March 2022

Function Documentation

◆ oneHotEncode()

sTensor oneHotEncode ( const sTensor &  vector)

One hot encode a vector of data.

Parameters
vectorThe vector to encode.
Returns
Matrix corresponding to the one hot encoded vector.