Santiago (@svpino) on X

X (formerly Twitter) ·

1 min read Original article ↗

Oct 4, 2022

Target values go from 0 to 9 (the value of each digit.) This line one-hot encodes these values. For example, this will transform a value like 5, in an array of zeros with a single 1 corresponding to the fifth position: [0, 0, 0, 0, 0, 1, 0, 0, 0, 0] 6 of 20