Spaces:
Sleeping
Sleeping
Commit
·
5dd334e
1
Parent(s):
60b5cc8
Fix Bug
Browse files
app.py
CHANGED
|
@@ -1508,6 +1508,7 @@ def run_model(model_name):
|
|
| 1508 |
st.markdown(f"### Heatmap: {x_comp} vs {y_comp}")
|
| 1509 |
|
| 1510 |
# Rango real de los datos
|
|
|
|
| 1511 |
x_min, x_max = df_heatmap[x_comp].min(), df_heatmap[x_comp].max()
|
| 1512 |
y_min, y_max = df_heatmap[y_comp].min(), df_heatmap[y_comp].max()
|
| 1513 |
|
|
@@ -1523,7 +1524,7 @@ def run_model(model_name):
|
|
| 1523 |
x_range = (x_min - padding, x_max + padding)
|
| 1524 |
y_range = (y_min - padding, y_max + padding)
|
| 1525 |
|
| 1526 |
-
|
| 1527 |
df_heatmap["x"] = df_heatmap[x_comp]
|
| 1528 |
df_heatmap["y"] = df_heatmap[y_comp]
|
| 1529 |
df_heatmap['x'] = np.nan_to_num(df_heatmap['x'], nan=0.0, posinf=0.0, neginf=0.0)
|
|
|
|
| 1508 |
st.markdown(f"### Heatmap: {x_comp} vs {y_comp}")
|
| 1509 |
|
| 1510 |
# Rango real de los datos
|
| 1511 |
+
df_heatmap = df_heatmap_base.copy()
|
| 1512 |
x_min, x_max = df_heatmap[x_comp].min(), df_heatmap[x_comp].max()
|
| 1513 |
y_min, y_max = df_heatmap[y_comp].min(), df_heatmap[y_comp].max()
|
| 1514 |
|
|
|
|
| 1524 |
x_range = (x_min - padding, x_max + padding)
|
| 1525 |
y_range = (y_min - padding, y_max + padding)
|
| 1526 |
|
| 1527 |
+
|
| 1528 |
df_heatmap["x"] = df_heatmap[x_comp]
|
| 1529 |
df_heatmap["y"] = df_heatmap[y_comp]
|
| 1530 |
df_heatmap['x'] = np.nan_to_num(df_heatmap['x'], nan=0.0, posinf=0.0, neginf=0.0)
|