Skip to main content

PyFed

PyFed is an open-source framework for federated learning. PyFed is fairly straightforward and brief in comparison to other federated learning frameworks. Furthermore, it allows running federated learning algorithms with any Tensorflow dataset on any preprocessed dataset. PyFed introduces several methods of federated learning implementation such as running multiple processes on a single machine and training on various systems. In addition, PyFed employs Tensorboard to demonstrate the history of training of each client and assess loss and accuracy of each client per round.
PyFed implements FL using sockets, processes, and threads. Simply put, each client will run its particular process and tries to establish a socket connection with the server, which also has its specific process. Once initiated, each connection will be handled by one thread of the server's process. Each thread will communicate with its respective client to receive the trained weights per round. Once they receive the result of one round, threads will return the weights to the server's process, which will arrive at a new model using the mentioned weights. The server will send the new model to the clients using newly initiated threads.
PyFed is mainly based on two classes:

  • FL_Server: which represents the server to which clients communicate in a federated learning problem. The train() function of this class handles socket connections and the FL policy.
  • FL_Client: which represents each client in a federated learning network. An object of this class handles training procedure of any global model on any local data.

PyFed can run federated learning in 2 ways:

  1. Running FL only on one system and using separate processes.
  2. Running FL on multiple systems.

Tutorials and installation guides are mentioned on PyFed webpage.

Metadata

Release files for pyfed-macos 0.0.35

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyfed-macos 0.0.35
File Size Uploaded Provenance Actions
pyfed_macos-0.0.35.tar.gz 6.3 kB Without provenance Details for pyfed_macos-0.0.35.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pyfed-macos 0.0.35
File Interpreter ABI Platform Actions
pyfed_macos-0.0.35-py3-none-any.whl Python 3 none any Details for pyfed_macos-0.0.35-py3-none-any.whl

Total release size: 13.6 kB

Release files / pyfed_macos-0.0.35.tar.gz

Download URL pyfed_macos-0.0.35.tar.gz
Size 6.3 kB
Tags Source
SHA-256 checksum
How to use checksums
f819ca23597b16f63f58958061356efea02d22b7d10b485b3f7c01903e92d58b
BLAKE2b-256 checksum
How to use checksums
1b779c4bf11701d8d08ee22bb55881288927db8ac583b1446004f50b59ca85f4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.7

Release files / pyfed_macos-0.0.35-py3-none-any.whl

Download URL pyfed_macos-0.0.35-py3-none-any.whl
Size 7.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
874e138fd3f1f906b236ca33fd5e61f0b15ddc2261851aa84ca025bb7d21e7c7
BLAKE2b-256 checksum
How to use checksums
58666a0b38c712e4f90bd7831dac29d9523460d37ce47cb2f18482d4e3027ae6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.7

Security for pyfed-macos 0.0.35

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.35 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page