Skip to content

docs: run the FL tutorial on the four EOC sites - #252

Merged
uniqueg merged 3 commits into
mainfrom
docs/fl-four-sites
Dec 2, 2026
Merged

uniqueg merged 3 commits into
mainfrom
docs/fl-four-sites

Conversation

@uniqueg

@uniqueg uniqueg commented Dec 2, 2026 •

Copy link
Copy Markdown
Member

Summary

The NVFlare hub of ELIXIR On-Cloud renames its sites after their TES implementation and Node, each with its own share of the synthetic test data (tesk-fi site-1, tesk-cz site-2, poiesis-fi site-3, poiesis-cz site-4). The federated learning tutorial now runs the four-site job logreg-fedavg-4 on all four sites (two TES implementations at two Nodes):

  • synopsis, step 2 (service info, with a table of the sites), step 5 (script command with --expect 1.000, the four-site accuracy; the script's default 0.975 is that of two sites), step 7 (CLI command), step 9 (task names), "under the hood" diagram and step 3 there (TESK token, Poiesis API key);
  • accuracy paragraph: 1.000 with four shares against 0.825/0.875/0.925/0.900 alone (testbed testset/README.md; reproduced locally by simulating the job's FedAvg);
  • "How this tutorial was tested": the four-site job with these names isn't recorded against the deployed hub yet.

Closes #251

Merge gate

Merge right after the hub's sites are switched (h5 apply), same evening. Before the switch, the hub's service info still lists site-1,site-2,poiesis-fi,poiesis-cz.

Verification

  • python scripts/check_names.py: passed.
  • mkdocs build --strict with DOCS_REGISTRY_OFFLINE=1: passed.
  • pytest: 356 passed, coverage 100%.
  • CI: all checks passed (gate "CI passed" green), Sourcery threads answered and resolved.

Review lane

Light lane: docs-only change.

Declined review findings

None.

Open questions

None.

🤖 Generated with Claude Code

Summary by Sourcery

Revise the federated learning tutorial to cover the four-site NVFlare job across both TES implementations and Nodes.

Enhancements:

  • Update the federated learning tutorial to run the four-site logreg-fedavg-4 job across TESK and Poiesis deployments on the FI and CZ Nodes.
  • Document the four-site site names, TES credentials, expected 1.000 holdout accuracy, and the distinction from two-site job results.

Documentation:

  • Clarify that the four-site configuration and job have not yet been verified against the deployed hub, and add a link to the test-set documentation.

The NVFlare hub names its sites after their TES and Node (tesk-fi,
tesk-cz, poiesis-fi, poiesis-cz), each with its own data share. The
tutorial now runs the four-site job logreg-fedavg-4 on all of them
(two TES implementations at two Nodes), in both parts, with the
expected output, accuracy (--expect 1.000) and diagram to match.

Closes #251

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@uniqueg uniqueg self-assigned this Dec 2, 2026
@read-the-docs-community

read-the-docs-community Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

@uniqueg
uniqueg marked this pull request as ready for review December 2, 2026 18:36
@sourcery-ai

sourcery-ai Bot commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Reviewer's Guide

Documentation

Update the tutorial’s overview and site mapping to describe the four TES deployments across the FI and CZ Nodes.

  • docs/researchers/tutorial-federated-learning.md L13-16, L88-102

Change the tutorial’s runnable command and expected accuracy to use all four sites and the four-site job.

  • docs/researchers/tutorial-federated-learning.md L147-149, L154-157

Revise the example output and success criteria to show completion at all four sites.

  • docs/researchers/tutorial-federated-learning.md L165-172

Update the CLI walkthrough, task names, and architecture explanation for the four-site job and both TES credential types.

  • docs/researchers/tutorial-federated-learning.md L244-252, L313-316 (+2 small edits)

Replace the accuracy comparison with the four-share result and link to the test-set description.

  • docs/researchers/tutorial-federated-learning.md L341-346

Record that the four-site names and job have not yet been verified against the deployed hub, and add the test-set reference.

  • docs/researchers/tutorial-federated-learning.md L379-383, L400-404, L432

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@sourcery-ai

sourcery-ai Bot commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Linked issues

Checked at commit de680f8

#251 docs: run the FL tutorial on the four EOC sites · 0 of 1 met · 1 to check by hand

# Requirement Status Notes
1 Run logreg-fedavg-4 on all four sites in both tutorial parts, with matching service info, expected output and under-the-hood diagram. 👀 Check by hand (external system) After the hub switch, verify its service info lists all four sites and run the documented script and step-by-step paths against the deployed hub; the tutorial says those names and the four-site job have not yet been checked there.

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey - I've found 1 issue

Prompt for AI Agents
Please address the comments from this code review:

## Individual Comments

### Comment 1
<location path="docs/researchers/tutorial-federated-learning.md" line_range="88" />
<code_context>
     }
   },
-  "sites": "site-1,site-2"
+  "sites": "tesk-fi,tesk-cz,poiesis-fi,poiesis-cz"
 }
 ```
</code_context>
<issue_to_address>
**Post-rename response appears preverified**

When readers treat the Step 2 sample as the output of the 29 November check, the tutorial presents four site names introduced on 2 December as part of a response dated 29 November, although the post-switch response was not checked against the deployed hub. Readers cannot tell whether the displayed service state was verified after the rename.

Correct the testing date or mark the four-site response as an unverified example until it has been checked against the deployed hub.

Also at `docs/researchers/tutorial-federated-learning.md:397`.
</issue_to_address>

Sourcery assessment

Approval pending. 1 finding to address first.

Blocking findings: docs/researchers/tutorial-federated-learning.md:88


Sourcery is free for open source - if you like our reviews please consider sharing them ✨

Refs #251

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sourcery assessment

Approved.

@uniqueg
uniqueg merged commit 20d3f6b into main Dec 2, 2026
8 checks passed
@uniqueg
uniqueg deleted the docs/fl-four-sites branch December 2, 2026 20:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docs: run the FL tutorial on the four EOC sites

1 participant