Skip to content

feat(examples): Add Federated Analytics example#6314

Open
chongshenng wants to merge 21 commits intomainfrom
add-fed-analytics-app
Open

feat(examples): Add Federated Analytics example#6314
chongshenng wants to merge 21 commits intomainfrom
add-fed-analytics-app

Conversation

@chongshenng
Copy link
Member

No description provided.

@chongshenng chongshenng marked this pull request as ready for review December 22, 2025 16:54
@github-actions github-actions bot added the Maintainer Used to determine what PRs (mainly) come from Flower maintainers. label Dec 22, 2025
@chongshenng chongshenng self-assigned this Jan 7, 2026
Copilot AI review requested due to automatic review settings February 2, 2026 10:59
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Maintainer Used to determine what PRs (mainly) come from Flower maintainers.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants