Spaces:
Sleeping
Sleeping
Update src/vis_utils.py
Browse files- src/vis_utils.py +2 -2
src/vis_utils.py
CHANGED
@@ -193,7 +193,7 @@ def plot_family_results(method_names, dataset, family_path="/tmp/family_results.
|
|
193 |
df['Mean_MCC'] = df[mcc_columns].mean(axis=1)
|
194 |
|
195 |
# Sort the DataFrame by the mean MCC
|
196 |
-
df = df.sort_values(by='Mean_MCC', ascending=
|
197 |
|
198 |
# Filter columns based on the dataset and metrics
|
199 |
value_vars = [col for col in df.columns if col.startswith(f"{dataset}_") and "_" in col]
|
@@ -259,8 +259,8 @@ def plot_affinity_results(method_names, metric, affinity_path="/tmp/affinity_res
|
|
259 |
|
260 |
# Gather columns related to the specified metric and validate
|
261 |
metric_columns = [col for col in df.columns if col.startswith(f"{metric}_")]
|
262 |
-
df = df.sort_values(by=metric_columns, ascending=False)
|
263 |
df = df[['Method'] + metric_columns].set_index('Method')
|
|
|
264 |
|
265 |
df = df.fillna(0)
|
266 |
|
|
|
193 |
df['Mean_MCC'] = df[mcc_columns].mean(axis=1)
|
194 |
|
195 |
# Sort the DataFrame by the mean MCC
|
196 |
+
df = df.sort_values(by='Mean_MCC', ascending=True)
|
197 |
|
198 |
# Filter columns based on the dataset and metrics
|
199 |
value_vars = [col for col in df.columns if col.startswith(f"{dataset}_") and "_" in col]
|
|
|
259 |
|
260 |
# Gather columns related to the specified metric and validate
|
261 |
metric_columns = [col for col in df.columns if col.startswith(f"{metric}_")]
|
|
|
262 |
df = df[['Method'] + metric_columns].set_index('Method')
|
263 |
+
df = df.sort_values(by=metric_columns, ascending=False)
|
264 |
|
265 |
df = df.fillna(0)
|
266 |
|