| import numpy as np |
| import matplotlib.pyplot as plt |
|
|
| |
| results = { |
| "Deep Learning (CNN)": 0.7770, |
| "Quantum (Standard)": 0.7994, |
| "Classical (RF Baseline)": 0.9120, |
| "Quantum (Residual Specialist)": 0.6532, |
| "Ensemble (RF + Quantum)": 0.9154 |
| } |
|
|
| |
| sorted_results = dict(sorted(results.items(), key=lambda item: item[1])) |
|
|
| print("🚀 GENERATING FINAL VICTORY ARTIFACTS...") |
|
|
| |
| plt.figure(figsize=(12, 6)) |
| |
| colors = ['gray', 'gray', 'gray', 'blue', 'gold'] |
| |
| |
| bar_colors = [] |
| for key in sorted_results.keys(): |
| if "Ensemble" in key: bar_colors.append('#FFD700') |
| elif "Baseline" in key: bar_colors.append('#1f77b4') |
| elif "Specialist" in key: bar_colors.append('#2ca02c') |
| else: bar_colors.append('#d62728') |
|
|
| bars = plt.barh(list(sorted_results.keys()), list(sorted_results.values()), color=bar_colors) |
|
|
| |
| for bar in bars: |
| width = bar.get_width() |
| |
| weight = 'bold' if width > 0.9120 else 'normal' |
| plt.text(width + 0.005, bar.get_y() + bar.get_height()/2, f'{width:.4f}', |
| va='center', fontsize=12, fontweight=weight) |
|
|
| plt.title("Final Result: Quantum Residual Learning Boosts SOTA", fontsize=14, fontweight='bold') |
| plt.xlabel("AUC Score (Higher is Better)") |
| plt.xlim(0.6, 0.95) |
| plt.axvline(x=0.9120, color='blue', linestyle='--', alpha=0.5, label='Classical Ceiling (0.9120)') |
| plt.legend(loc='lower right') |
| plt.grid(axis='x', alpha=0.3) |
| plt.tight_layout() |
|
|
| plt.savefig('final_victory_chart.png') |
| print("📸 Saved 'final_victory_chart.png'") |
|
|
| print("\n✅ PROJECT COMPLETE.") |
| print(f" Final Boost: +{0.9154 - 0.9120:.5f} AUC") |