|
95 | 95 | "for ax, model in zip(axes, models):\n", |
96 | 96 | " optimizers = sorted(hpo_grouped[model].keys())\n", |
97 | 97 | " data_to_plot = [hpo_grouped[model][opt] for opt in optimizers]\n", |
98 | | - " all_values = [val for sublist in data_to_plot for val in sublist]\n", |
99 | 98 | " \n", |
100 | | - " if all_values:\n", |
101 | | - " y_min, y_max = np.percentile(all_values, [2, 98])\n", |
102 | | - " ax.set_ylim(y_min - (y_max - y_min) * 0.1, y_max + (y_max - y_min) * 0.1)\n", |
103 | 99 | " \n", |
104 | 100 | " bp = ax.boxplot(data_to_plot, tick_labels=optimizers, patch_artist=True)\n", |
105 | 101 | " for patch in bp['boxes']:\n", |
106 | 102 | " patch.set_facecolor('lightblue')\n", |
107 | 103 | " \n", |
108 | | - " ax.set_title(f'{model} - Final Fitness (HPO)', fontweight='bold')\n", |
| 104 | + " ax.set_title(f'{model}', fontweight='bold')\n", |
109 | 105 | " ax.set_xlabel('Optimizer')\n", |
110 | 106 | " ax.set_ylabel('Composite Fitness')\n", |
111 | 107 | " ax.grid(True, alpha=0.3)\n", |
|
180 | 176 | " f'{val:.4f}', ha='center', va='bottom', fontsize=9)\n", |
181 | 177 | " \n", |
182 | 178 | " ax.set_ylim(0, 1)\n", |
183 | | - " ax.set_title(f'{model} - Test Performance', fontweight='bold')\n", |
| 179 | + " ax.set_title(f'{model}', fontweight='bold')\n", |
184 | 180 | " ax.set_xlabel('Optimizer')\n", |
185 | 181 | " ax.set_ylabel('Composite Fitness')\n", |
186 | 182 | " ax.grid(True, alpha=0.3, axis='y')\n", |
|
252 | 248 | " ax.fill_between(generations, mean_curve - std_curve, mean_curve + std_curve, \n", |
253 | 249 | " color=color, alpha=0.2)\n", |
254 | 250 | " \n", |
255 | | - " ax.set_title(f'{model} - Convergence', fontweight='bold')\n", |
256 | | - " ax.set_xlabel('Generation')\n", |
| 251 | + " ax.set_title(f'{model}', fontweight='bold')\n", |
| 252 | + " ax.set_xlabel('Evaluation Count ($n$)')\n", |
257 | 253 | " ax.set_ylabel('Best Fitness')\n", |
258 | 254 | " ax.legend()\n", |
259 | 255 | " ax.grid(True, alpha=0.3)\n", |
|
0 commit comments