public fit(notnull data as NDArray<T>) as StandardScaler<T>
Fits on training observations only. Keeps O(features) statistics, not the input tensor. Invalid input leaves the previous fitted state unchanged. Do not refit on validation/test data: use transform with this same scaler.
| Parameter | Description |
|---|---|
data | Non-empty finite matrix in T. |
This instance, for chaining.
scaler.fit(xTrain)