Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bud with broken metrics dropdown #452

Merged
merged 1 commit into from
Jan 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions examples/mnist-pytorch/client/entrypoint
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ NUM_CLASSES = 10


def _get_data_path():
""" For test automation using docker-compose. """
# Figure out FEDn client number from container name
client = docker.from_env()
container = client.containers.get(os.environ['HOSTNAME'])
Expand Down
5 changes: 3 additions & 2 deletions fedn/fedn/clients/reducer/restservice.py
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,8 @@ def network_graph():
graph = plot.make_netgraph_plot(df_edges, df_nodes)
return json.dumps(json_item(graph, "myplot"))
except Exception:
return ''
raise
# return ''

@app.route('/events')
def events():
Expand Down Expand Up @@ -498,7 +499,7 @@ def models():
h_latest_model_id = self.control.get_latest_model()

model_info = self.control.get_model_info()
return render_template('models.html', box_plot=box_plot, h_latest_model_id=h_latest_model_id, seed=True,
return render_template('models.html', box_plot=box_plot, metrics=valid_metrics, h_latest_model_id=h_latest_model_id, seed=True,
model_info=model_info, configured=True)

seed = True
Expand Down