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