scatter plot pareto front cost vs accblend import matplotlib.pyplot as plt , axs =…
- User
scatter plot pareto front cost vs acc_blend
import matplotlib.pyplot as plt , axs = plt.subplots(3, 2, figsize=(17, 20)) axs = axs.flatten() tt = [('train', train_pareto_front), ('test', test_pareto_front), ('all', trees)] costs = {k: [m['cost'] for m, _ in pf] for k, pf in tt} train_metrics = {k: [m[METRIC] for m, _ in pf] for k, pf in tt} test_metrics = {k: [m.get(f'test{METRIC}') for m, _ in pf] for k, pf in tt} colors = {'train': 'blue', 'test': 'orange', 'all': 'gray'}
for k in ['all', 'train', 'test']: sz = 1 if k=='all' else 20 axs[0].scatter(costs[k], train_metrics[k], alpha=0.5, label=k, s=sz, color=colors[k]) axs[1].scatter(costs[k], test_metrics[k], alpha=0.5, label=k, s=sz, color=colors[k])
for ax in axs[:2]: ax.legend()
axs[0].set_title('Train data metric with pareto fronts'); axs[0].set_xlabel('Cost/1000 samples'); axs[0].set_ylabel(METRIC) axs[1].set_title('Test data metric with pareto fronts'); axs[1].set_xlabel('Cost/1000 samples'); axs[1].set_ylabel('test_'+METRIC)
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.