fix bugs
Browse files- app.py +2 -0
- process_data.py +7 -5
app.py
CHANGED
|
@@ -79,6 +79,7 @@ def prep_leaderboard_df():
|
|
| 79 |
|
| 80 |
def prep_detailed_success_rate_df():
|
| 81 |
df = load_detailed_success_rate_data()
|
|
|
|
| 82 |
df.insert(0, "Model", [map_model_name(idx) for idx in df.index])
|
| 83 |
df.insert(1, "Model Type", [map_model_type(idx) for idx in df.index])
|
| 84 |
df = df.round(2)
|
|
@@ -86,6 +87,7 @@ def prep_detailed_success_rate_df():
|
|
| 86 |
|
| 87 |
def prep_detailed_action_counts_df():
|
| 88 |
df = load_detailed_action_counts_data()
|
|
|
|
| 89 |
df.insert(0, "Model", [map_model_name(idx) for idx in df.index])
|
| 90 |
df.insert(1, "Model Type", [map_model_type(idx) for idx in df.index])
|
| 91 |
df = df.round(2)
|
|
|
|
| 79 |
|
| 80 |
def prep_detailed_success_rate_df():
|
| 81 |
df = load_detailed_success_rate_data()
|
| 82 |
+
# df = df.T # 转置为 model 是行,指标是列
|
| 83 |
df.insert(0, "Model", [map_model_name(idx) for idx in df.index])
|
| 84 |
df.insert(1, "Model Type", [map_model_type(idx) for idx in df.index])
|
| 85 |
df = df.round(2)
|
|
|
|
| 87 |
|
| 88 |
def prep_detailed_action_counts_df():
|
| 89 |
df = load_detailed_action_counts_data()
|
| 90 |
+
# df = df.T # 转置为 model 是行,指标是列
|
| 91 |
df.insert(0, "Model", [map_model_name(idx) for idx in df.index])
|
| 92 |
df.insert(1, "Model Type", [map_model_type(idx) for idx in df.index])
|
| 93 |
df = df.round(2)
|
process_data.py
CHANGED
|
@@ -52,10 +52,12 @@ def load_easy_data():
|
|
| 52 |
|
| 53 |
|
| 54 |
if __name__ == '__main__':
|
| 55 |
-
average_df = load_average_data()
|
| 56 |
-
hard_df = load_hard_data()
|
| 57 |
-
easy_df = load_easy_data()
|
| 58 |
-
import ipdb; ipdb.set_trace()
|
| 59 |
-
df = pd.concat([average_df, hard_df, easy_df], axis=1)
|
|
|
|
|
|
|
| 60 |
print(df)
|
| 61 |
|
|
|
|
| 52 |
|
| 53 |
|
| 54 |
if __name__ == '__main__':
|
| 55 |
+
# average_df = load_average_data()
|
| 56 |
+
# hard_df = load_hard_data()
|
| 57 |
+
# easy_df = load_easy_data()
|
| 58 |
+
# import ipdb; ipdb.set_trace()
|
| 59 |
+
# df = pd.concat([average_df, hard_df, easy_df], axis=1)
|
| 60 |
+
# print(df)
|
| 61 |
+
df = load_detailed_success_rate_data()
|
| 62 |
print(df)
|
| 63 |
|