Closed racinmat closed 2 years ago
Fixes #83 . Allows calling Flux.onecold for MaybeHotArray{<:Integer} which is useful if we want to use JsonGrinder to encode labels. Adds maybecold which is same to onecold as maybehot is for onehot.
Flux.onecold
MaybeHotArray{<:Integer}
maybecold
onecold
maybehot
onehot
Done, is it ok like this?
Fixes #83 . Allows calling
Flux.onecold
forMaybeHotArray{<:Integer}
which is useful if we want to use JsonGrinder to encode labels. Addsmaybecold
which is same toonecold
asmaybehot
is foronehot
.