Expand description
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.
§Features
derive
: enables the derive macros.matrix
: enables functions for encoding data into a bitmatrix.
Traits§
- OneHot
- The trait for one-hot encoding of structs and enums.
Functions§
- horizontal
- Encode a dataset horizontally into a bitmatrix using OneHot.
- vertical
- Encode a dataset vertically into a bitmatrix using OneHot.
Derive Macros§
- OneHot
- The auto derive macro for OneHot.