dqm_ml_core.api.processor
Base processor class.
This module contains the Processor base class that all metrics, features, and gap processors must inherit from.
logger = logging.getLogger(__name__)
module-attribute
Processor
Base class for all Data Quality metrics, feature extractors, and gap processors.
Provides shared initialization, failure-rate checking, and column resolution.
Lifecycle methods are defined in the appropriate subclass:
:class:FeaturesProcessor, :class:MetricsProcessor, or :class:GapProcessor.
Source code in packages/dqm-ml-core/src/dqm_ml_core/api/processor.py
columns_config = None
instance-attribute
compute_device: str = 'cpu'
instance-attribute
compute_seed: int | None = None
instance-attribute
config = config
instance-attribute
current_path_prefix: dict[str, str] = {}
instance-attribute
errors_config = None
instance-attribute
exclude_columns: list[str] | None = None
instance-attribute
input_columns: list[str] = []
instance-attribute
name = name
instance-attribute
storage_raw = config.pop('storage', None)
instance-attribute
__init__(name: str, config: dict[str, Any] | None)
Initialize the processor.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
name
|
str
|
Unique name of the processor instance. |
required |
config
|
dict[str, Any] | None
|
Configuration dictionary (optional). |
required |
Source code in packages/dqm-ml-core/src/dqm_ml_core/api/processor.py
needed_columns() -> list[str]
Return the list of raw input columns required for processing.
Returns:
| Type | Description |
|---|---|
list[str]
|
A list of column names. |
reset() -> None
Reset per-selection state between dataselections.
Processors that cache per-selection state (e.g. histogram bin edges in RepresentativenessProcessor) MUST override this to clear that state. Called by DatasetJob after each selection.