This crate provides a trait for one-hot encoding of arbitrary structs and enums. You will probably wan't to use the custom derive from onehot-derive most of the time.
It also provides functions for encoding a collection of records into a bitmatrix.
derive: enables the derive macros.
matrix: enables functions for encoding data into a bitmatrix.
The trait for one-hot encoding of structs and enums.
Encode a dataset horizontally into a bitmatrix using OneHot.
Encode a dataset vertically into a bitmatrix using OneHot.
The auto derive macro for OneHot.