cursus.steps.configs.config_label_ruleset_execution_step¶
Label Ruleset Execution Step Configuration
This module implements the configuration class for the Label Ruleset Execution step using the three-tier design pattern for optimal user experience and maintainability.
- class LabelRulesetExecutionConfig(*, author, bucket, role, region, service_name, pipeline_version, model_class='xgboost', current_date=<factory>, framework_version='2.1.0', py_version='py310', source_dir=None, enable_caching=False, use_secure_pypi=False, max_runtime_seconds=172800, project_root_folder, processing_instance_count=1, processing_volume_size=500, processing_instance_type_large='ml.m5.4xlarge', processing_instance_type_small='ml.m5.2xlarge', use_large_processing_instance=False, skip_volume_kms=None, processing_source_dir=None, processing_entry_point='label_ruleset_execution.py', processing_script_arguments=None, processing_framework_version='1.2-1', job_type, fail_on_missing_fields=True, enable_rule_match_tracking=True, enable_progress_logging=True, preferred_input_format='', **extra_data)[source]¶
Bases:
ProcessingStepConfigBaseConfiguration for Label Ruleset Execution step using three-tier design.
This step applies validated rulesets to processed data to generate classification labels using priority-based rule evaluation with execution-time field validation. Supports stacked preprocessing patterns by using processed_data for both input and output.
Tier 1: Essential user inputs (required) Tier 2: System inputs with defaults (optional) Tier 3: Derived fields (private with property access)
- property execution_environment_variables: Dict[str, str]¶
Get environment variables for the label ruleset execution step.
- classmethod validate_preferred_input_format(v)[source]¶
Validate preferred_input_format is one of the allowed values.
Matching is case-insensitive and the stored value is normalized to the canonical-cased allowed value. The consuming script lowercases PREFERRED_INPUT_FORMAT on read, so canonical case is not load-bearing.
- get_public_init_fields()[source]¶
Override get_public_init_fields to include execution-specific fields. Gets a dictionary of public fields suitable for initializing a child config.
- Returns:
Dictionary of field names to values for child initialization
- Return type:
Dict[str, Any]
- is_production_ready()[source]¶
Check if configuration is production-ready.
- Returns:
True if configuration has production-ready settings
- Return type:
- get_execution_info()[source]¶
Get detailed execution configuration information.
- Returns:
Execution details and recommendations
- Return type:
Dict[str, Any]
- model_config: ClassVar[ConfigDict] = {'arbitrary_types_allowed': True, 'extra': 'allow', 'protected_namespaces': (), 'validate_assignment': True}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)¶
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- Parameters:
self (BaseModel) – The BaseModel instance.
context (Any) – The context.