Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -22,7 +22,7 @@ def get_baseline_df(selected_methods, selected_metrics):
|
|
| 22 |
|
| 23 |
def create_plot(methods_selected, x_metric, y_metric):
|
| 24 |
df = pd.read_csv(CSV_RESULT_PATH)
|
| 25 |
-
filtered_df = df[df['
|
| 26 |
|
| 27 |
# Create a Seaborn lineplot with method as hue
|
| 28 |
plt.figure(figsize=(10, 8)) # Increase figure size
|
|
@@ -30,7 +30,7 @@ def create_plot(methods_selected, x_metric, y_metric):
|
|
| 30 |
data=filtered_df,
|
| 31 |
x=x_metric,
|
| 32 |
y=y_metric,
|
| 33 |
-
hue="
|
| 34 |
marker="o", # Add markers to the line plot
|
| 35 |
)
|
| 36 |
|
|
|
|
| 22 |
|
| 23 |
def create_plot(methods_selected, x_metric, y_metric):
|
| 24 |
df = pd.read_csv(CSV_RESULT_PATH)
|
| 25 |
+
filtered_df = df[df['method_name'].isin(methods_selected)]
|
| 26 |
|
| 27 |
# Create a Seaborn lineplot with method as hue
|
| 28 |
plt.figure(figsize=(10, 8)) # Increase figure size
|
|
|
|
| 30 |
data=filtered_df,
|
| 31 |
x=x_metric,
|
| 32 |
y=y_metric,
|
| 33 |
+
hue="method_name", # Different colors for different methods
|
| 34 |
marker="o", # Add markers to the line plot
|
| 35 |
)
|
| 36 |
|