stereo.core.StPipeline.scale#
- StPipeline.scale(zero_center=True, max_value=None, inplace=True, res_key='scale')[source]#
Scale express matrix to unit variance and zero mean.
- Parameters:
zero_center (
bool
) – ifFalse
, ignore zero variables, which allows to deal with sparse input efficently.max_value (
Optional
[float
]) – truncate to this value after scaling, ifNone
, do not truncate.inplace (
bool
) – whether to inplace the previous data or get a new express matrix after scaling.res_key (
str
) – the key to get targeted result fromself.result
.
- Returns:
An object of StereoExpData.
Depending on
inplace
, ifTrue
, the data will be replaced by those scaled.