NormalizeMatrixData


Treats Matrix as a data frame, where examples are in rows while columns represent features, and normalizes the data by subtracting mean from each column and dividing it by its standard deviation.

Syntax

C++
C#
Python
 
def NormalizeMatrixData(
	inMatrix: Matrix,
	outNormalizedMatrix: Matrix,
	outMeansVector: Matrix,
	outStandardDeviationsVector: Matrix,
	/,
	*,
	inMeansVector: Matrix | None = None,
	inStandardDeviationsVector: Matrix | None = None
)
-> None

Parameters

Name Type Default Description
Input value inMatrix Matrix Input data frame.
Input value inMeansVector Matrix | None None If provided, will be used in normalization of inMatrix.
Input value inStandardDeviationsVector Matrix | None None If provided, will be used in normalization of inMatrix.
Output value outNormalizedMatrix Matrix Resulting normalized matrix.
Output value outMeansVector Matrix Resulting Means vector - copy of inMeansVector, or calculated Means, if inMeansVector was set NIL.
Output value outStandardDeviationsVector Matrix Resulting StdDevs vector - copy of inStandardDeviationsVector, or calculated Means, if inStandardDeviationsVector was set NIL.