Skip to main content

Library for serverless Federated Learning experiments.

Project description

FLoX

FLoX (Federated Learning on funcX) is a Python library for serverless Federated Learning experiments.

This is initial documentation that will be soon expanded.

Installation

Use the package manager pip to install flox.

# seems like flox is taken, will update the name soon
pip install flox

Usage

For a full example, see this Google Colab tutorial.

from flox.flox import federated_learning

# performs 5 rounds of Federated Learning train global_model on given endpoint_ids
# uses 10 epochs and 100 samples from fashion_mnist dataset for training
federated_learning(global_model=global_model, 
                  endpoint_ids=endpoint_ids,
                  loops=5,
                  epochs=10,
                  keras_dataset="fashion_mnist", 
                  num_samples=100, 
                  input_shape=(32, 28, 28, 1))

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyflox-0.1.5.tar.gz (7.0 kB view details)

Uploaded Source

File details

Details for the file pyflox-0.1.5.tar.gz.

File metadata

  • Download URL: pyflox-0.1.5.tar.gz
  • Upload date:
  • Size: 7.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.7.10

File hashes

Hashes for pyflox-0.1.5.tar.gz
Algorithm Hash digest
SHA256 7865a4f733298b1f5741986c032805985e61a514cc88827252000df0defbee0b
MD5 5532042b9b02272139bda02f615454a4
BLAKE2b-256 cf2710c48b4d3ed8ac7be09ed7872bf218e5ddc6bda932e109e7fa4bf6c022d7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page