Spaces:
Running
Running
[email protected]
commited on
Commit
·
19cd8f0
1
Parent(s):
a0af26a
update
Browse files
app.py
CHANGED
@@ -73,22 +73,22 @@ ASSET_LEADERBOARD_DF = get_leaderboard_df(EVAL_RESULTS_PATH, EVAL_REQUESTS_PATH,
|
|
73 |
|
74 |
def init_asset_plot(df):
|
75 |
acc_col = 'Average ⬆️'
|
76 |
-
df = df.sort_values(acc_col).tail(
|
77 |
fig = go.Figure()
|
78 |
asset_tasks = [task.value.col_name for task in AssetTasks]
|
79 |
for _, row in df.iterrows():
|
80 |
fig.add_trace(go.Scatterpolar(
|
81 |
r=[row[asset_task] for asset_task in asset_tasks],
|
82 |
theta=asset_tasks,
|
83 |
-
opacity = 0.
|
84 |
-
fill='toself',
|
85 |
name=row['Model']
|
86 |
)
|
87 |
)
|
88 |
fig.update_layout(
|
89 |
-
autosize=False,
|
90 |
-
width=650,
|
91 |
-
height=600,
|
92 |
title=f"Accuracy per Asset"
|
93 |
)
|
94 |
return fig
|
|
|
73 |
|
74 |
def init_asset_plot(df):
|
75 |
acc_col = 'Average ⬆️'
|
76 |
+
df = df.sort_values(acc_col).tail(3)
|
77 |
fig = go.Figure()
|
78 |
asset_tasks = [task.value.col_name for task in AssetTasks]
|
79 |
for _, row in df.iterrows():
|
80 |
fig.add_trace(go.Scatterpolar(
|
81 |
r=[row[asset_task] for asset_task in asset_tasks],
|
82 |
theta=asset_tasks,
|
83 |
+
# opacity = 0.1,
|
84 |
+
# fill='toself',
|
85 |
name=row['Model']
|
86 |
)
|
87 |
)
|
88 |
fig.update_layout(
|
89 |
+
# autosize=False,
|
90 |
+
# width=650,
|
91 |
+
# height=600,
|
92 |
title=f"Accuracy per Asset"
|
93 |
)
|
94 |
return fig
|