.FastAI
OneHotTensor
struct
defined in module
FastAI
OneHotTensor{N, T}(classes) <: Block
A block representing a one-hot encoded, N-dimensional array categorical variable. For example, a single categorical label is a
OneHotTensor{0, T}
(aliased to
OneHotTensor{T}
).
Use the
OneHot
encoding to one-hot encode
Label
s or
LabelMulti
s.
The following page links back here: