OneHot
struct defined in module DataAugmentation
struct
DataAugmentation
OneHot([T = Float32])
One-hot encodes a MaskMulti with n classes and size sz into an array item of size (sz..., n) with element type T. Supports apply!.
MaskMulti
n
sz
(sz..., n)
T
apply!
item = MaskMulti ( rand ( 1 : 4 , 100 , 100 ) , 1 : 4 ) apply ( OneHot ( ) , item )
There is 1 method for DataAugmentation.OneHot:
DataAugmentation.OneHot
The following pages link back here:
DataAugmentation.jl , preprocessing.jl