Federated-Learning | paper Communication-Efficient Learning | Runtime Evironment library
kandi X-RAY | Federated-Learning Summary
kandi X-RAY | Federated-Learning Summary
We implement the paper Communication-Efficient Learning of Deep Networks from Decentralized Data. Its blog is here.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Register handlers
- Start the next round
- Stop the optimizer
- Calculates the aggregate loss and accuracy for each client
- Aggregate train loss and agr accuracies
- Summarize the validation loss
- Returns a dictionary of the training loss stats
- Convert a Python object to a pickle string
- Convert a string to a Python object
- Generate dummy data
- Generate dummy weights
- Apply pre - processing
- Sample a single non - id
- Train the model
- Start the server
Federated-Learning Key Features
Federated-Learning Examples and Code Snippets
Community Discussions
Trending Discussions on Federated-Learning
QUESTION
I am working on a federated learning to detect bad clients.
Brief about federated learning - Data is divided into various clients, training is done on client side and the results are then sent by each client to central server where aggregation of the client weights is done and the aggregated model is then again sent to local clients for training.
I am working on detection of client sending malicious updates to central server. I am using base code present here.
I wrote a method filter client which will detect if some client is malicious and remove that client from aggregation step. I expected that there will not be much performance difference if one of the client weight is remove from global aggregation but the results are confusing me. I added this piece of code. noisy_client[itr] != 0 will only occur for 1/10 clients and it will occur for the same client in each iteration.
...ANSWER
Answered 2021-Mar-31 at 12:37A common problem could be that you are trying to aggregate in a no_grad() scope. Happened to me once. The optimizer was essentially resetting once every federated round even though the models are being aggregated.
This is a hunch as I can't say more since I haven't seen any code.
QUESTION
I am trying to run a federated learning from pysyft (https://github.com/OpenMined/PySyft/blob/dev/examples/tutorials/advanced/websockets-example-MNIST-parallel/Asynchronous-federated-learning-on-MNIST.ipynb) that creates remote workers and connect to them via websockets. however I am getting an error in folllowing evaluation step.
...ANSWER
Answered 2020-Feb-19 at 02:38I came across this problem as well and pushed a fix in https://github.com/OpenMined/PySyft/pull/2948
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install Federated-Learning
You can use Federated-Learning like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page