Spaces:
Running
Running
Upload viz.py
Browse files- utils/viz.py +2 -1
utils/viz.py
CHANGED
@@ -5,7 +5,6 @@ import plotly.graph_objects as go
|
|
5 |
import textwrap
|
6 |
import numpy as np
|
7 |
import pandas as pd
|
8 |
-
from scipy.stats import chi2
|
9 |
from scipy import stats
|
10 |
|
11 |
|
@@ -42,6 +41,8 @@ def create_task_success_heatmap(df, benchmark_name):
|
|
42 |
tasks_solved = (pivot_df.sum(axis=0) > 0).astype(int)
|
43 |
# Total number of tasks (columns)
|
44 |
total_tasks = len(pivot_df.columns)
|
|
|
|
|
45 |
|
46 |
# Add the new row to the pivot table
|
47 |
tasks_solved_df = pd.DataFrame(tasks_solved).T
|
|
|
5 |
import textwrap
|
6 |
import numpy as np
|
7 |
import pandas as pd
|
|
|
8 |
from scipy import stats
|
9 |
|
10 |
|
|
|
41 |
tasks_solved = (pivot_df.sum(axis=0) > 0).astype(int)
|
42 |
# Total number of tasks (columns)
|
43 |
total_tasks = len(pivot_df.columns)
|
44 |
+
if 'SWE-bench' in benchmark_name:
|
45 |
+
total_tasks = 50 # TODO - remove hardcoding
|
46 |
|
47 |
# Add the new row to the pivot table
|
48 |
tasks_solved_df = pd.DataFrame(tasks_solved).T
|