Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -999,13 +999,13 @@ with ui.navset_card_tab(id="tab"):
|
|
| 999 |
multiple=True,
|
| 1000 |
selected='compliment'
|
| 1001 |
)
|
| 1002 |
-
def
|
| 1003 |
# interplot each column to be same number of points
|
| 1004 |
x = np.linspace(0, 1, 1000)
|
| 1005 |
loss_rates = []
|
| 1006 |
labels = []
|
| 1007 |
#drop the column step
|
| 1008 |
-
|
| 1009 |
for param_type in param_types:
|
| 1010 |
for loss_type in loss_types:
|
| 1011 |
for model_type in model_types:
|
|
@@ -1028,7 +1028,7 @@ with ui.navset_card_tab(id="tab"):
|
|
| 1028 |
fig = None
|
| 1029 |
df = pd.read_csv('results - denseformer.csv')
|
| 1030 |
mpl.rcParams.update(mpl.rcParamsDefault)
|
| 1031 |
-
fig =
|
| 1032 |
return fig
|
| 1033 |
# @output
|
| 1034 |
# @render.plot
|
|
|
|
| 999 |
multiple=True,
|
| 1000 |
selected='compliment'
|
| 1001 |
)
|
| 1002 |
+
def plot_loss_rates_model(df, param_types, loss_types, model_types):
|
| 1003 |
# interplot each column to be same number of points
|
| 1004 |
x = np.linspace(0, 1, 1000)
|
| 1005 |
loss_rates = []
|
| 1006 |
labels = []
|
| 1007 |
#drop the column step
|
| 1008 |
+
# df = df.drop(columns=['Step'])
|
| 1009 |
for param_type in param_types:
|
| 1010 |
for loss_type in loss_types:
|
| 1011 |
for model_type in model_types:
|
|
|
|
| 1028 |
fig = None
|
| 1029 |
df = pd.read_csv('results - denseformer.csv')
|
| 1030 |
mpl.rcParams.update(mpl.rcParamsDefault)
|
| 1031 |
+
fig = plot_loss_rates_model(df, input.param_type(),input.loss_type(),input.model_type())
|
| 1032 |
return fig
|
| 1033 |
# @output
|
| 1034 |
# @render.plot
|