e between 0 and n_classes-1.</p><pre><code class="language-julia hljs">using NovaML.PreProcessing

lblencode = LabelEncoder()

labels = [&quot;M&quot;, &quot;L&quot;, &quot;XL&quot;, &quot;M&quot;, &quot;L&quot;, &quot;M&quot;]

# Label encode labels
labels = lblencode(labels)

# Get the labels back
lblencode(labels, :inverse)</code></pre><h3 id="OneHotEncoder"><a class="docs-heading-anchor" href="#OneHotEncoder">OneHotEncoder</a><a id="OneHotEncoder-1"></a><a class="docs-heading-anchor-permalink" href="#On