dataset
/
org.jetbrains.kotlinx.dl.dataset
/
OnFlyImageDataset
/
Companion
/
toOneHotVector
to
One
Hot
Vector
@
JvmStatic
fun
toOneHotVector
(numClasses:
Int
, label:
Byte
):
FloatArray
Content copied to clipboard
Creates binary vector with size
numClasses
from
label
.