Spaces:
Sleeping
Sleeping
Commit
·
bc50028
1
Parent(s):
3a9e1df
Obtain Max Silohuette
Browse files
app.py
CHANGED
|
@@ -603,7 +603,7 @@ 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 |
-
|
| 607 |
feature_options = ["v_density"]
|
| 608 |
|
| 609 |
silhouette_vals = []
|
|
@@ -612,7 +612,7 @@ def compute_global_regression(df_combined, embedding_cols, tsne_params, df_f1, r
|
|
| 612 |
silhouette = silhouette_score(reduced_real, labels)
|
| 613 |
silhouette_vals.append(silhouette)
|
| 614 |
|
| 615 |
-
silhouette = np.
|
| 616 |
|
| 617 |
dfs_reduced, unique_subsets = split_versions(df_combined, reduced)
|
| 618 |
|
|
|
|
| 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 = []
|
|
|
|
| 612 |
silhouette = silhouette_score(reduced_real, labels)
|
| 613 |
silhouette_vals.append(silhouette)
|
| 614 |
|
| 615 |
+
silhouette = np.max(silhouette_vals)
|
| 616 |
|
| 617 |
dfs_reduced, unique_subsets = split_versions(df_combined, reduced)
|
| 618 |
|