Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1053,7 +1053,7 @@ with ui.navset_card_tab(id="tab"):
|
|
1053 |
"loss_type_scale",
|
1054 |
"Select Loss Type:",
|
1055 |
["compliment", "cross_entropy", "headless", "2d", "2d_representation_MSEPlusCE"],
|
1056 |
-
multiple=
|
1057 |
selected=["cross_entropy"]
|
1058 |
)
|
1059 |
def plot_loss_rates_model_scale(df, loss_type, model_types):
|
@@ -1093,13 +1093,13 @@ with ui.navset_card_tab(id="tab"):
|
|
1093 |
return fig
|
1094 |
|
1095 |
|
1096 |
-
import matplotlib as mpl
|
1097 |
@render.plot()
|
1098 |
-
def
|
1099 |
fig = None
|
1100 |
df = pd.read_csv('training_data_5.csv')
|
1101 |
mpl.rcParams.update(mpl.rcParamsDefault)
|
1102 |
-
fig = plot_loss_rates_model_scale(df
|
1103 |
return fig
|
1104 |
# @output
|
1105 |
# @render.plot
|
|
|
1053 |
"loss_type_scale",
|
1054 |
"Select Loss Type:",
|
1055 |
["compliment", "cross_entropy", "headless", "2d", "2d_representation_MSEPlusCE"],
|
1056 |
+
multiple=True,
|
1057 |
selected=["cross_entropy"]
|
1058 |
)
|
1059 |
def plot_loss_rates_model_scale(df, loss_type, model_types):
|
|
|
1093 |
return fig
|
1094 |
|
1095 |
|
1096 |
+
# import matplotlib as mpl
|
1097 |
@render.plot()
|
1098 |
+
def plot_big_boy_model():
|
1099 |
fig = None
|
1100 |
df = pd.read_csv('training_data_5.csv')
|
1101 |
mpl.rcParams.update(mpl.rcParamsDefault)
|
1102 |
+
fig = plot_loss_rates_model_scale(df,input.loss_type_scale(),input.model_type_scale())
|
1103 |
return fig
|
1104 |
# @output
|
1105 |
# @render.plot
|