standardize#
- tangles.util.preprocessing.standardize(data: ndarray, axis: int) ndarray #
Standardize data such that, along the specified axis, the mean is 0 and the standard deviation is 1. If along the axis the data is the same, then the data is converted to zeros.
Parameters#
- data
the data to standardize.
- axis
the axis along which to standardize.
Returns#
- np.ndarray
standardized data.