[−][src]Function onehot::horizontal
pub fn horizontal<T: OneHot>(data: &[T]) -> BitMatrix
Encode a dataset horizontally into a bitmatrix using OneHot.
The resulting matrix is of the form:
value 1 . . . value N
+---------------------------
record 1 | true . . . false
. | . . . . .
. | . . . . .
. | . . . . .
record M | false . . . false