nirs4all.controllers.models.stacking.config module
Configuration classes for training set reconstruction.
This module provides configuration dataclasses used by the TrainingSetReconstructor for controlling how out-of-fold predictions are collected and processed.
- class nirs4all.controllers.models.stacking.config.ReconstructorConfig(validate_fold_alignment: bool = True, validate_sample_coverage: bool = True, log_warnings: bool = True, max_missing_fold_ratio: float = 0.0, allow_partial_sources: bool = False, feature_name_pattern: str = '{model_name}_pred', excluded_fold_ids: ~typing.Set[str] = <factory>)[source]
Bases:
objectConfiguration for TrainingSetReconstructor.
Controls internal behavior of the reconstruction process, separate from the user-facing StackingConfig.
- feature_name_pattern
Pattern for generating feature column names. Supports: {model_name}, {fold_id}, {classname}, {step_idx}
- Type:
Example
>>> config = ReconstructorConfig( ... validate_fold_alignment=True, ... log_warnings=True, ... feature_name_pattern="{model_name}_pred" ... )