Hack90 commited on
Commit
dc59f5e
1 Parent(s): 4e35012

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -1028,11 +1028,14 @@ with ui.navset_card_tab(id="tab"):
1028
  for i, loss_rate in enumerate(loss_rates):
1029
  df_madmad = pd.DataFrame({'x':x, 'loss':loss_rate})
1030
 
1031
- df_madmad = df_madmad.sort_values(by='x')
1032
  df_madmad = df_madmad[df_madmad['x']>x_filter]
1033
  x = df_madmad['x'].to_list()
1034
  loss_rate = df_madmad['loss'].to_list()
1035
- ax.plot(x, loss_rate, label=labels[i])
 
 
 
1036
 
1037
  ax.legend()
1038
  ax.set_xlabel('Training steps')
 
1028
  for i, loss_rate in enumerate(loss_rates):
1029
  df_madmad = pd.DataFrame({'x':x, 'loss':loss_rate})
1030
 
1031
+ # df_madmad = df_madmad.sort_values(by='x')
1032
  df_madmad = df_madmad[df_madmad['x']>x_filter]
1033
  x = df_madmad['x'].to_list()
1034
  loss_rate = df_madmad['loss'].to_list()
1035
+ try:
1036
+ ax.plot(x, loss_rate, label=labels[i])
1037
+ except:
1038
+ return fig
1039
 
1040
  ax.legend()
1041
  ax.set_xlabel('Training steps')