import { CategoricalEncoder } from "https://deno.land/x/netsaur@0.4.0-patch/packages/utilities/src/encoding/categorical.ts";
Convert class labels into categorical variables (one-hot)
Properties
mapping: Map<T, number>
Map categories to indices
Static Methods
fromSoftmax<DT extends DataType>(data: MatrixLike<DT>): Matrix<DT>
Convert softmax outputs into categorical outputs This method mutates the original matrix.