cursus.validation.builders.reporting¶
Streamlined Reporting and Scoring Package for Builder Testing.
This package contains only the essential streamlined modules for generating reports and scoring for builder test results. Optimized to leverage the alignment system infrastructure while eliminating over-engineering.
Essential Components: - StreamlinedBuilderTestReporter: Unified reporting system - StreamlinedStepBuilderScorer: Component-based scoring system
Architectural Changes: - ✅ Streamlined reporting system (50% code reduction) - ✅ Component-based scoring (eliminates manual test categorization) - ✅ Alignment system integration (leverages proven infrastructure) - ✅ Unified report formats (compatible with alignment system) - ✅ Eliminated over-engineered components (results_storage, report_generator, etc.) - ✅ Backward compatibility maintained
- class StreamlinedBuilderTestReporter(output_dir=None)[source]¶
Bases:
objectStreamlined reporter that leverages alignment system infrastructure.
Eliminates redundancy by using proven alignment system patterns while preserving unique builder testing capabilities.
- test_and_report_builder(builder_class, step_name=None)[source]¶
Test a step builder using the unified validation approach.
Leverages the refactored UniversalStepBuilderTest that integrates with the alignment system to eliminate redundancy.
- class StreamlinedBuilderTestReport(builder_name, builder_class, sagemaker_step_type)[source]¶
Bases:
objectSimplified builder test report that leverages alignment system infrastructure.
Eliminates redundancy by using alignment system’s proven reporting patterns while preserving unique builder testing capabilities.
- class StreamlinedStepBuilderScorer(validation_results)[source]¶
Bases:
objectStreamlined scorer that leverages alignment system infrastructure.
Eliminates redundancy by using alignment system’s proven test categorization and priority system while preserving essential quality metrics.
- calculate_overall_score()[source]¶
Calculate overall score using simplified weighted approach.
- Returns:
Overall score (0-100)
- Return type:
- score_builder_validation_results(validation_results, step_name='Unknown', save_report=True, output_dir='test_reports')[source]¶
Score validation results from the unified validation approach.
- Parameters:
- Returns:
Score report dictionary
- Return type:
- BuilderTestReporter¶
alias of
StreamlinedBuilderTestReporter
- BuilderTestReport¶
alias of
StreamlinedBuilderTestReport
- StepBuilderScorer¶
alias of
StreamlinedStepBuilderScorer
- score_builder_results(results, builder_name='Unknown', save_report=True, output_dir='test_reports', generate_chart=False)[source]¶
Legacy compatibility function for scoring builder results.
This function provides backward compatibility but internally uses the streamlined scoring approach.
Modules
Streamlined Step Builder Test Reporting System. |
|
Streamlined Scoring System for Universal Step Builder Tests. |