import { TfEncoder } from "https://deno.land/x/netsaur@0.4.2/packages/utilities/mod.ts";
Convert 2D array of indices into multi-hot encoded vectors where each index contains the number of times the respective value appears in a sample (term frequency encoder).