OneHotEncoder

public final class OneHotEncoder<T extends Object> implements Encoder<T>

A simple OneHotEncoder which encodes a category of any type into a numeric value.

Constructors

Link copied to clipboard
public OneHotEncoder<T> OneHotEncoder()

Functions

Link copied to clipboard
public Unit fit(List<T> input)
Link copied to clipboard
public NDArray<Integer, D2> fitTransform(List<T> input)
Link copied to clipboard
public List<T> invert(NDArray<Integer, D2> input)
Link copied to clipboard
public NDArray<Integer, D2> transform(List<T> input)