import { OneHotEncoder } from "https://deno.land/x/netsaur@0.4.2/packages/utilities/src/encoding/onehot.ts";
Convert an array of indices into one-hot encoded vectors.
Methods
transform<DT extends DataType>(targets: number[], dType: DT): Matrix<DT>
One-hot encoding of values
untransform<DT extends DataType>(data: MatrixLike<DT>): number[]