cursus.processing.numerical.feature_normalization_processor

Feature Normalization Processor for Numerical Features

This module provides atomic feature normalization (L1, L2, max normalization). Extracted from TSA feature normalization requirements.

class FeatureNormalizationProcessor(method='l2', axis=1, columns=None, epsilon=1e-08)[source]

Bases: Processor

Normalizes features using L1, L2, or max normalization.

Extracted from TSA feature normalization requirements.

Parameters:
  • method (str) – ‘l1’, ‘l2’, ‘max’

  • axis (int) – Axis along which to normalize (0 for columns, 1 for rows)

  • columns (List[str] | None) – Specific columns to normalize

  • epsilon (float) – Small value to avoid division by zero

fit(data)[source]

No fitting required for normalization

process(input_data)[source]

Apply feature normalization

get_normalization_info(data)[source]

Get information about the normalization that would be applied

check_normalization(data, tolerance=1e-06)[source]

Check if data is already normalized according to the specified method

get_config()[source]

Return processor configuration