pub fn one_hot(labels: &[usize], classes: usize) -> R2D
The one-hot encoding of labels (exposed for building custom targets).