This example shows how to train MNIST with FedAvg algorithm using libp2p nodes. The repo will be updated regularly. All contributions are welcome.
Prepare the node environment:
$ npm install
# Or
$ yarnRun the training script in seperated terminal:
$ node main.js <node_id>There are three nodes currently with their config. You can add your config in data/nodes and increase node number to measure scalability of the system.