Spaces:
Running
Running
Commit
·
ebb9221
1
Parent(s):
5eefeea
Fix Bug
Browse files
app.py
CHANGED
|
@@ -1114,7 +1114,7 @@ def run_model(model_name):
|
|
| 1114 |
|
| 1115 |
# Plotear las muestras reales, agrupadas por label
|
| 1116 |
# for label in unique_subsets["real"]:
|
| 1117 |
-
for label in result["classes_k"]:
|
| 1118 |
subset = df_all["real"][df_all["real"]['label'] == label]
|
| 1119 |
source = ColumnDataSource(data={
|
| 1120 |
'x': subset['x'],
|
|
@@ -1125,7 +1125,7 @@ def run_model(model_name):
|
|
| 1125 |
fig_all.circle('x', 'y', size=10,
|
| 1126 |
fill_color=color_maps["real"][label],
|
| 1127 |
line_color=color_maps["real"][label],
|
| 1128 |
-
legend_label=f"Real: {
|
| 1129 |
source=source)
|
| 1130 |
|
| 1131 |
show_real_only = st.checkbox("Show only real samples", value=True, key=f"show_real_only_{model_name}")
|
|
|
|
| 1114 |
|
| 1115 |
# Plotear las muestras reales, agrupadas por label
|
| 1116 |
# for label in unique_subsets["real"]:
|
| 1117 |
+
for label_k, label in zip(result["classes_k"], unique_subsets["real"]):
|
| 1118 |
subset = df_all["real"][df_all["real"]['label'] == label]
|
| 1119 |
source = ColumnDataSource(data={
|
| 1120 |
'x': subset['x'],
|
|
|
|
| 1125 |
fig_all.circle('x', 'y', size=10,
|
| 1126 |
fill_color=color_maps["real"][label],
|
| 1127 |
line_color=color_maps["real"][label],
|
| 1128 |
+
legend_label=f"Real: {label_k}",
|
| 1129 |
source=source)
|
| 1130 |
|
| 1131 |
show_real_only = st.checkbox("Show only real samples", value=True, key=f"show_real_only_{model_name}")
|