Labello: a fast label encoder in Rust
This crate provides a simple API for encoding labels represented by vectors. It uses a hashmap as internal data structure for classes and their mapping.
Example
// load data in a vector
let data: = vec!;
// define type of encoder and configuration for fitting
let enctype = Ordinal;
let config = Config;
// create encoder of <enctype>
let mut enc: = new;
// fit encoder with this configuration
enc.fit;
// transform original data to internal encoded representation
let trans_data = enc.transform;
// inverse transform internal encoded representation to original data
let recon_data = enc.inverse_transform;
// get unique original elements
let uniques = enc.uniques;