Spaces:
Sleeping
Sleeping
Commit
·
3a9e1df
1
Parent(s):
8a9da85
Test
Browse files
app.py
CHANGED
|
@@ -603,11 +603,11 @@ def compute_global_regression(df_combined, embedding_cols, tsne_params, df_f1, r
|
|
| 603 |
|
| 604 |
df_heat = pd.read_csv(f"data/heatmaps_idefics2-patient.csv")
|
| 605 |
# feature_options = [col for col in df_heat.columns if col != "name"]
|
| 606 |
-
feature_options = ["grades", "table_pos", "v_density", "v_info_blocks", "layout", "columns"]
|
|
|
|
| 607 |
|
| 608 |
silhouette_vals = []
|
| 609 |
for feature in feature_options:
|
| 610 |
-
print(feature)
|
| 611 |
labels = df_heat[feature].values
|
| 612 |
silhouette = silhouette_score(reduced_real, labels)
|
| 613 |
silhouette_vals.append(silhouette)
|
|
|
|
| 603 |
|
| 604 |
df_heat = pd.read_csv(f"data/heatmaps_idefics2-patient.csv")
|
| 605 |
# feature_options = [col for col in df_heat.columns if col != "name"]
|
| 606 |
+
# feature_options = ["grades", "table_pos", "v_density", "v_info_blocks", "layout", "columns"]
|
| 607 |
+
feature_options = ["v_density"]
|
| 608 |
|
| 609 |
silhouette_vals = []
|
| 610 |
for feature in feature_options:
|
|
|
|
| 611 |
labels = df_heat[feature].values
|
| 612 |
silhouette = silhouette_score(reduced_real, labels)
|
| 613 |
silhouette_vals.append(silhouette)
|