feat(examples): Add Federated Analytics example#6314
Open
chongshenng wants to merge 21 commits intomainfrom
Open
feat(examples): Add Federated Analytics example#6314chongshenng wants to merge 21 commits intomainfrom
chongshenng wants to merge 21 commits intomainfrom
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds a new example demonstrating Federated Analytics using Flower's framework. The example shows how to perform distributed statistical analysis on healthcare data stored in multiple PostgreSQL databases without centralizing the raw data.
Changes:
- Implements a federated analytics pipeline that computes aggregated statistics (mean and standard deviation) across distributed databases
- Provides database setup scripts to generate artificial OMOP CDM-compliant healthcare data
- Includes comprehensive documentation for running the example with Flower's Deployment Engine
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 6 comments.
Show a summary per file
| File | Description |
|---|---|
| examples/federated-analytics/pyproject.toml | Defines project dependencies and Flower app configuration for the federated analytics example |
| examples/federated-analytics/federated_analytics/task.py | Implements database querying and feature aggregation logic for computing distributed statistics |
| examples/federated-analytics/federated_analytics/server_app.py | Defines the ServerApp that orchestrates the federated analytics workflow |
| examples/federated-analytics/federated_analytics/client_app.py | Defines the ClientApp that queries local databases and computes partial statistics |
| examples/federated-analytics/db_start.sh | Bash script to generate and start multiple PostgreSQL containers using Docker Compose |
| examples/federated-analytics/db_init.sh | Database initialization script that creates tables and populates them with synthetic healthcare data |
| examples/federated-analytics/README.md | Provides setup instructions and usage guide for the federated analytics example |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
jafermarq
reviewed
Feb 2, 2026
jafermarq
reviewed
Feb 2, 2026
jafermarq
reviewed
Feb 2, 2026
Co-authored-by: Javier <jafermarq@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.