StandardScaleTransform<T>

Models & Types · AiDotNet.Data.Transforms.Numeric

Applies Z-score normalization: (x - mean) / std, computing mean and std from a reference dataset.

Implements: ITransform<T[], T[]>

For Beginners

Z-score normalization converts your data so that the average becomes 0 and the spread becomes 1. This is computed from a reference dataset (typically the training set) and then applied to all data.

How It Works

Unlike NormalizeTransform which requires pre-computed mean/std, this transform computes statistics from a reference dataset during construction.

Constructors

Constructor Summary
StandardScaleTransform(T[] mean, T[] std) Creates a standard scaler from pre-computed statistics.
StandardScaleTransform(T[][] referenceData) Creates a standard scaler from a reference dataset.

Methods

Method Summary
T[] Apply(T[] input)