Spaces:
Sleeping
Sleeping
Zekun Wu
commited on
Commit
•
9602d77
1
Parent(s):
c104620
update
Browse files- pages/2_Evaluation.py +13 -0
pages/2_Evaluation.py
CHANGED
@@ -87,6 +87,19 @@ def app():
|
|
87 |
title='Correlation Heatmap')
|
88 |
st.plotly_chart(corr_fig)
|
89 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
90 |
st.download_button(
|
91 |
label="Download Evaluation Results",
|
92 |
data=results_df.to_csv(index=False).encode('utf-8'),
|
|
|
87 |
title='Correlation Heatmap')
|
88 |
st.plotly_chart(corr_fig)
|
89 |
|
90 |
+
# Additional rank plots
|
91 |
+
st.write("Histogram of Ranks")
|
92 |
+
hist_rank_fig = px.histogram(
|
93 |
+
df.melt(id_vars=['Role'], value_vars=['Rank_Privilege', 'Rank_Protection', 'Rank_Neutral']),
|
94 |
+
x='value', color='variable', facet_col='variable', title='Distribution of Ranks')
|
95 |
+
st.plotly_chart(hist_rank_fig)
|
96 |
+
|
97 |
+
st.write("Box Plot of Ranks")
|
98 |
+
box_rank_fig = px.box(
|
99 |
+
df.melt(id_vars=['Role'], value_vars=['Rank_Privilege', 'Rank_Protection', 'Rank_Neutral']),
|
100 |
+
x='variable', y='value', color='variable', title='Spread of Ranks')
|
101 |
+
st.plotly_chart(box_rank_fig)
|
102 |
+
|
103 |
st.download_button(
|
104 |
label="Download Evaluation Results",
|
105 |
data=results_df.to_csv(index=False).encode('utf-8'),
|