Skip to content

app(flowerhub): add FedXGBoost for financial fraud detection implementation#6807

Closed
eo4929 wants to merge 6 commits intoflwrlabs:mainfrom
eo4929:FedXGBoost
Closed

app(flowerhub): add FedXGBoost for financial fraud detection implementation#6807
eo4929 wants to merge 6 commits intoflwrlabs:mainfrom
eo4929:FedXGBoost

Conversation

@eo4929
Copy link
Copy Markdown

@eo4929 eo4929 commented Mar 20, 2026

Summary

  • Implement FedXGBoost algorithm
  • Add training and evaluation pipeline
  • Ensure compatibility with Flower framework

Validation

  • ./framework/dev/format.sh
  • ./framework/dev/test.sh

I follow some instructions written in https://www.notion.so/flowerlabs/Guide-How-to-Publish-Apps-on-Flower-Hub-1d1d8ccd59cf8073a742da2c83ceb89b.

Copilot AI review requested due to automatic review settings March 20, 2026 16:12
Copy link
Copy Markdown
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

Adds a new Flower Hub app implementing a federated XGBoost-based workflow for financial fraud detection, including client/server apps, data utilities, and ensemble aggregation.

Changes:

  • Introduces a Flower ServerApp/ClientApp training + evaluation loop for “FedXGBBagging”.
  • Adds dataset preprocessing, partitioning utilities, and XGBoost model (de)serialization helpers.
  • Adds a large fed_xgb_bagging.py module implementing bagging and similarity-based aggregation utilities.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 9 comments.

Show a summary per file
File Description
examples/FinancialFraudDetection-app/pyproject.toml Declares the app package metadata, dependencies, and Flower app entrypoints/config.
examples/FinancialFraudDetection-app/frauddetection/task.py Implements preprocessing, data loading/partitioning, training, evaluation, and model serialization helpers.
examples/FinancialFraudDetection-app/frauddetection/server_app.py Implements the federated orchestration loop, collects per-round client models, builds an ensemble, and runs evaluation.
examples/FinancialFraudDetection-app/frauddetection/client_app.py Implements per-client local training and evaluation handlers and transmits serialized boosters.
examples/FinancialFraudDetection-app/frauddetection/fed_xgb_bagging.py Adds ensemble/bagging and similarity-based utilities used server-side for prediction/evaluation.
examples/FinancialFraudDetection-app/frauddetection/init.py Adds package marker and module docstring.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread examples/FinancialFraudDetection-app/pyproject.toml Outdated
Comment thread examples/FinancialFraudDetection-app/frauddetection/task.py Outdated
Comment thread examples/FinancialFraudDetection-app/frauddetection/task.py
Comment thread examples/FinancialFraudDetection-app/frauddetection/server_app.py
Comment thread examples/FinancialFraudDetection-app/frauddetection/server_app.py Outdated
Comment thread examples/FinancialFraudDetection-app/frauddetection/fed_xgb_bagging.py Outdated
Comment thread examples/FinancialFraudDetection-app/frauddetection/fed_xgb_bagging.py Outdated
Comment thread examples/FinancialFraudDetection-app/frauddetection/client_app.py Outdated
@github-actions github-actions Bot added the Contributor Used to determine what PRs (mainly) come from external contributors. label Mar 20, 2026
@yan-gao-GY
Copy link
Copy Markdown
Member

This app has been published on Flower Hub --- https://flower.ai/apps/mainthread/federated-fraud-detection/

@yan-gao-GY yan-gao-GY closed this Mar 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Contributor Used to determine what PRs (mainly) come from external contributors.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants