Function matrixNumericalEncoding
- matrixNumericalEncoding(
matrixInitial: (string | number)[][],
): {
dictCategoricalToNumerical: Record<string, number>;
matrix: number[][];
} Parameters
- matrixInitial: (string | number)[][]
Returns { dictCategoricalToNumerical: Record<string, number>; matrix: number[][] }
- dictionary from string to number
Numerically encodes the strings in the matrix and returns an encoding dictionary which can be used to encode other matrices