fudan-renjun commited on
Commit
04e5add
·
verified ·
1 Parent(s): 75b2505

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -3
app.py CHANGED
@@ -575,7 +575,6 @@ def run_pipeline(
575
  log(f" ✅ {n_classes} 分类 — 数据验证通过")
576
 
577
  label_map = {c: i for i, c in enumerate(classes)}
578
- label_map_inv = {i: c for c, i in label_map.items()}
579
  y_mapped = y.map(label_map)
580
  class_indices = list(range(n_classes))
581
 
@@ -1114,7 +1113,6 @@ def run_pipeline(
1114
  ax.legend(loc='lower right',fontsize=11); ax.grid(True,alpha=0.15); plt.tight_layout()
1115
  plt.savefig(os.path.join(rf,f'roc_train_vs_cv_{best_mn}.pdf'),
1116
  format='pdf',bbox_inches='tight',dpi=300)
1117
- format='png',bbox_inches='tight',dpi=150)
1118
  plt.close()
1119
 
1120
  # ── PR:同上 ──
@@ -1132,7 +1130,6 @@ def run_pipeline(
1132
  ax.legend(loc='lower left',fontsize=11); ax.grid(True,alpha=0.15); plt.tight_layout()
1133
  plt.savefig(os.path.join(rf,f'pr_train_vs_cv_{best_mn}.pdf'),
1134
  format='pdf',bbox_inches='tight',dpi=300)
1135
- format='png',bbox_inches='tight',dpi=150)
1136
  plt.close()
1137
 
1138
  # In-sample 混淆矩阵(过拟合参考)
 
575
  log(f" ✅ {n_classes} 分类 — 数据验证通过")
576
 
577
  label_map = {c: i for i, c in enumerate(classes)}
 
578
  y_mapped = y.map(label_map)
579
  class_indices = list(range(n_classes))
580
 
 
1113
  ax.legend(loc='lower right',fontsize=11); ax.grid(True,alpha=0.15); plt.tight_layout()
1114
  plt.savefig(os.path.join(rf,f'roc_train_vs_cv_{best_mn}.pdf'),
1115
  format='pdf',bbox_inches='tight',dpi=300)
 
1116
  plt.close()
1117
 
1118
  # ── PR:同上 ──
 
1130
  ax.legend(loc='lower left',fontsize=11); ax.grid(True,alpha=0.15); plt.tight_layout()
1131
  plt.savefig(os.path.join(rf,f'pr_train_vs_cv_{best_mn}.pdf'),
1132
  format='pdf',bbox_inches='tight',dpi=300)
 
1133
  plt.close()
1134
 
1135
  # In-sample 混淆矩阵(过拟合参考)