Update app.py
Browse files
app.py
CHANGED
@@ -191,6 +191,15 @@ def main():
|
|
191 |
|
192 |
st.success(f"Training completed successfully!")
|
193 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
194 |
else:
|
195 |
st.write("Click the 'Start Training' button to start the training process.")
|
196 |
|
@@ -201,6 +210,7 @@ if __name__ == "__main__":
|
|
201 |
|
202 |
|
203 |
|
|
|
204 |
# # %%writefile app.py
|
205 |
|
206 |
# import streamlit as st
|
|
|
191 |
|
192 |
st.success(f"Training completed successfully!")
|
193 |
|
194 |
+
# Display final metrics
|
195 |
+
st.write("## Final Client Metrics")
|
196 |
+
for client in clients:
|
197 |
+
st.write(f"### Client {client.client_id}")
|
198 |
+
st.write(f"Final Loss: {client.losses[-1]:.4f}")
|
199 |
+
st.write(f"Final Accuracy: {client.accuracies[-1]:.4f}")
|
200 |
+
client.plot_metrics(NUM_ROUNDS)
|
201 |
+
st.write(" ")
|
202 |
+
|
203 |
else:
|
204 |
st.write("Click the 'Start Training' button to start the training process.")
|
205 |
|
|
|
210 |
|
211 |
|
212 |
|
213 |
+
|
214 |
# # %%writefile app.py
|
215 |
|
216 |
# import streamlit as st
|