add explanation to bubble chart
Browse files
app.py
CHANGED
|
@@ -74,10 +74,14 @@ with chart_c2:
|
|
| 74 |
placeholder_chart_c2_1 = st.empty()
|
| 75 |
with placeholder_chart_c2_1:
|
| 76 |
st_lottie(lottie_loading, height=100, key="loading_c2_1")
|
|
|
|
|
|
|
|
|
|
|
|
|
| 77 |
|
| 78 |
st.caption("Leaderboard")
|
| 79 |
-
|
| 80 |
-
with
|
| 81 |
st_lottie(lottie_loading, height=100, key="loading_c2_2")
|
| 82 |
|
| 83 |
|
|
@@ -134,7 +138,7 @@ observable(
|
|
| 134 |
targets=["c_noaws"],
|
| 135 |
redefine={"serializedData": serialized_data, "profileSimple": profiles, "width": 0},
|
| 136 |
)
|
| 137 |
-
|
| 138 |
|
| 139 |
global_metrics = get_global_metrics(serialized_data)
|
| 140 |
|
|
@@ -142,7 +146,6 @@ placeholder_key_figures_c1.write(f"<b>{global_metrics['num_contributing_users']}
|
|
| 142 |
placeholder_key_figures_c2.write(f"<b>{global_metrics['num_active_users']}</b>", unsafe_allow_html=True)
|
| 143 |
placeholder_key_figures_c3.write(f"<b>{global_metrics['total_runtime']}</b>", unsafe_allow_html=True)
|
| 144 |
|
| 145 |
-
|
| 146 |
with placeholder_chart_c2_1:
|
| 147 |
observable(
|
| 148 |
"Participants",
|
|
|
|
| 74 |
placeholder_chart_c2_1 = st.empty()
|
| 75 |
with placeholder_chart_c2_1:
|
| 76 |
st_lottie(lottie_loading, height=100, key="loading_c2_1")
|
| 77 |
+
|
| 78 |
+
st.write("Chart showing participants of the collaborative-training. Circle radius is relative to the total number of "
|
| 79 |
+
"processed batches, the circle is greyed if the participant is not active. Every purple square represents an "
|
| 80 |
+
"active device, darker color corresponds to higher performance.")
|
| 81 |
|
| 82 |
st.caption("Leaderboard")
|
| 83 |
+
placeholder_chart_c2_3 = st.empty()
|
| 84 |
+
with placeholder_chart_c2_3:
|
| 85 |
st_lottie(lottie_loading, height=100, key="loading_c2_2")
|
| 86 |
|
| 87 |
|
|
|
|
| 138 |
targets=["c_noaws"],
|
| 139 |
redefine={"serializedData": serialized_data, "profileSimple": profiles, "width": 0},
|
| 140 |
)
|
| 141 |
+
placeholder_chart_c2_3.dataframe(df_leaderboard[["User", "Total time contributed"]])
|
| 142 |
|
| 143 |
global_metrics = get_global_metrics(serialized_data)
|
| 144 |
|
|
|
|
| 146 |
placeholder_key_figures_c2.write(f"<b>{global_metrics['num_active_users']}</b>", unsafe_allow_html=True)
|
| 147 |
placeholder_key_figures_c3.write(f"<b>{global_metrics['total_runtime']}</b>", unsafe_allow_html=True)
|
| 148 |
|
|
|
|
| 149 |
with placeholder_chart_c2_1:
|
| 150 |
observable(
|
| 151 |
"Participants",
|