klyn.math.preprocessing.StandardScaler.fitTransform
method
public fitTransform(notnull data as NDArray<T>, inPlace as Boolean = false) as NDArray<T>
Description

Fits training statistics, then applies them using transform's copy policy.

Parameters
ParameterDescription
dataNon-empty training matrix in T.
inPlaceModify data and return it; false preserves the original.
Returns

Independent normalized tensor or the modified input instance.

Throws
  • ValueException for invalid training data or unrepresentable output.
  • NullException if data is null at runtime; statically null arguments are rejected with TypeError.
Example

scaler.fitTransform(xTrain, inPlace=true)