MCPcopy Index your code
hub / github.com/Speakn0w/RealChart2Code / create_empty_evaluation

Function create_empty_evaluation

RealChart2Code_eval/evaluate_task2.py:661–679  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

659
660
661def create_empty_evaluation() -> Dict:
662 return {
663 'visual_structure_alignment': {
664 'chart_type_consistency': {'score': 0, 'reason': ''},
665 'spatial_layout_consistency': {'score': 0, 'reason': ''},
666 'text_element_consistency': {'score': 0, 'reason': ''},
667 'axis_configuration_consistency': {'score': 0, 'reason': ''},
668 'color_scheme_consistency': {'score': 0, 'reason': ''},
669 'style_and_format_consistency': {'score': 0, 'reason': ''},
670 'component_completeness': {'score': 0, 'reason': ''}
671 },
672 'execution_quality': {
673 'visual_clarity': {'score': 0, 'reason': ''},
674 'compositional_balance': {'score': 0, 'reason': ''},
675 'data_integrity': {'score': 0, 'reason': ''}
676 },
677 'data_alignment': {'score': 0, 'reason': 'Data alignment failed'},
678 'improvement_recommendations': ''
679 }
680
681def calculate_overall_score(evaluation: Dict) -> Dict:
682 # Visual Structure Alignment scores (0-2 scale)

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected