Federated Learning simulation using Flower where each client runs a Genetic Algorithm to optimize hyperparameters locally before training a model.
- Python 3.10
- uv (recommended) or pip
# 1. Create and activate a virtual environment
uv venv --python 3.10
source .venv/bin/activate # macOS / Linux
# .venv\Scripts\activate # Windows
# 2. Install the Flower app and its dependencies
cd federatedgeneticalgorithm
pip install -e .All commands below must be run from inside the federatedgeneticalgorithm/ directory.
flwr run .flwr run . local-simulation-gpu