MCPcopy Create free account
hub / github.com/Speakn0w/RealChart2Code / create_empty_evaluation

Function create_empty_evaluation

RealChart2Code_eval/evaluate_task3.py:632–649  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

630
631
632def create_empty_evaluation() -> Dict:
633 return {
634 'visual_structure_alignment': {
635 'chart_type_consistency': {'score': 0, 'reason': ''},
636 'spatial_layout_consistency': {'score': 0, 'reason': ''},
637 'text_element_consistency': {'score': 0, 'reason': ''},
638 'axis_configuration_consistency': {'score': 0, 'reason': ''},
639 'color_scheme_consistency': {'score': 0, 'reason': ''},
640 'style_and_format_consistency': {'score': 0, 'reason': ''},
641 'component_completeness': {'score': 0, 'reason': ''}
642 },
643 'execution_quality': {
644 'visual_clarity': {'score': 0, 'reason': ''},
645 'compositional_balance': {'score': 0, 'reason': ''},
646 'data_integrity': {'score': 0, 'reason': ''}
647 },
648 'improvement_recommendations': ''
649 }
650
651def calculate_overall_score(evaluation: Dict) -> Dict:
652 # Visual Structure Alignment scores (0-1 scale)

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected