cii-text-analysis/vendor/rubix/ml/docs/transformers/robust-standardizer.md
Jéremy Munsch f68d2ac333
premier poc
2026-02-11 08:24:04 +01:00

1.2 KiB

[source]

Robust Standardizer

This standardizer transforms continuous features by centering them around the median and scaling by the median absolute deviation (MAD) referred to as a robust or modified Z-Score. The use of robust statistics make this standardizer more immune to outliers than Z Scale Standardizer.

{\displaystyle z^\prime = {x - \operatorname {median}(X) \over MAD }}

Interfaces: Transformer, Stateful, Persistable

Data Type Compatibility: Continuous

Parameters

# Name Default Type Description
1 center true bool Should we center the data at 0?

Example

use Rubix\ML\Transformers\RobustStandardizer;

$transformer = new RobustStandardizer(true);

Additional Methods

Return the medians calculated by fitting the training set:

public medians() : array

Return the median absolute deviations calculated during fitting:

public mads() : array