Skip to main content

one_hot

Function one_hot 

Source
pub fn one_hot(labels: &[usize], classes: usize) -> R2D
Expand description

The one-hot encoding of labels (exposed for building custom targets).