QMRITools`
QMRITools`
ClassEncoder
ClassEncoder[label]
encodes Integer label data of 0 to max value of label into a nClass + 1 vector of 1 and 0 as the last dimension.
ClassEncoder[label,nClass]
encodes Integer label data of 0 to nCalss into a nClass + 1 vector of 1 and 0 as the last dimension.
Examples
In[1]:=1

✖
https://wolfram.com/xid/0cza1mk6vs0r9prpnlns8v2-cr3k4