Hack90 commited on
Commit
a1d4679
1 Parent(s): 0d6b711

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -983,7 +983,7 @@ with ui.navset_card_tab(id="tab"):
983
  "Select Param Type:",
984
  ["14", "31", "70", "160"],
985
  multiple=True,
986
- selected=["14"]
987
  )
988
  ui.input_selectize(
989
  "model_type",
@@ -1009,7 +1009,8 @@ with ui.navset_card_tab(id="tab"):
1009
  for param_type in param_types:
1010
  for loss_type in loss_types:
1011
  for model_type in model_types:
1012
- y = df[(df['param_type'] ==param_type) & (df['loss_type'] == loss_type ) & (df['model_type'] == model_type)]['loss'].dropna().astype('float', errors = 'ignore').dropna().values
 
1013
  f = interp1d(np.linspace(0, 1, len(y)), y)
1014
  loss_rates.append(f(x))
1015
  labels.append(str(param_type) +'_'+loss_type +'_'+model_type)
 
983
  "Select Param Type:",
984
  ["14", "31", "70", "160"],
985
  multiple=True,
986
+ selected=["14", "70"]
987
  )
988
  ui.input_selectize(
989
  "model_type",
 
1009
  for param_type in param_types:
1010
  for loss_type in loss_types:
1011
  for model_type in model_types:
1012
+ y = df[(df['param_type'] ==param_type) & (df['loss_type'] == loss_type ) & (df['model_type'] == model_type)]['loss'].astype('float').values
1013
+ print(y)
1014
  f = interp1d(np.linspace(0, 1, len(y)), y)
1015
  loss_rates.append(f(x))
1016
  labels.append(str(param_type) +'_'+loss_type +'_'+model_type)