├── .gitignore ├── LICENSE ├── README.md ├── commonComponent ├── __init__.py ├── interRun-old.sh ├── interRun.sh └── usefulTools.py ├── dagMainChain ├── README.md ├── clientRun.py ├── dagComps │ ├── dag.py │ └── transaction.py ├── dagRun.sh ├── dagSocket │ ├── dagClient.py │ └── dagServer.py ├── run_state.txt └── serverRun.py └── federatedLearning ├── __init__.py ├── _config.yml ├── buildModels.py ├── data ├── README.md ├── __init__.py └── genesisBlock.pkl ├── main_fed.py ├── main_fed_agg.py ├── main_fed_asyn.py ├── main_fed_baseline.py ├── main_fed_load.py ├── main_fed_local.py ├── main_nn.py ├── models ├── Fed.py ├── Nets.py ├── Update.py ├── __init__.py └── test.py ├── save └── .gitkeep └── utils ├── __init__.py ├── options.py └── sampling.py /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shuoyuan/ChainsFL-implementation/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shuoyuan/ChainsFL-implementation/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shuoyuan/ChainsFL-implementation/HEAD/README.md -------------------------------------------------------------------------------- /commonComponent/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /commonComponent/interRun-old.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shuoyuan/ChainsFL-implementation/HEAD/commonComponent/interRun-old.sh -------------------------------------------------------------------------------- /commonComponent/interRun.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shuoyuan/ChainsFL-implementation/HEAD/commonComponent/interRun.sh -------------------------------------------------------------------------------- /commonComponent/usefulTools.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shuoyuan/ChainsFL-implementation/HEAD/commonComponent/usefulTools.py -------------------------------------------------------------------------------- /dagMainChain/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shuoyuan/ChainsFL-implementation/HEAD/dagMainChain/README.md -------------------------------------------------------------------------------- /dagMainChain/clientRun.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shuoyuan/ChainsFL-implementation/HEAD/dagMainChain/clientRun.py -------------------------------------------------------------------------------- /dagMainChain/dagComps/dag.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shuoyuan/ChainsFL-implementation/HEAD/dagMainChain/dagComps/dag.py -------------------------------------------------------------------------------- /dagMainChain/dagComps/transaction.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shuoyuan/ChainsFL-implementation/HEAD/dagMainChain/dagComps/transaction.py -------------------------------------------------------------------------------- /dagMainChain/dagRun.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shuoyuan/ChainsFL-implementation/HEAD/dagMainChain/dagRun.sh -------------------------------------------------------------------------------- /dagMainChain/dagSocket/dagClient.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shuoyuan/ChainsFL-implementation/HEAD/dagMainChain/dagSocket/dagClient.py -------------------------------------------------------------------------------- /dagMainChain/dagSocket/dagServer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shuoyuan/ChainsFL-implementation/HEAD/dagMainChain/dagSocket/dagServer.py -------------------------------------------------------------------------------- /dagMainChain/run_state.txt: -------------------------------------------------------------------------------- 1 | -1 -------------------------------------------------------------------------------- /dagMainChain/serverRun.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shuoyuan/ChainsFL-implementation/HEAD/dagMainChain/serverRun.py -------------------------------------------------------------------------------- /federatedLearning/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /federatedLearning/_config.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shuoyuan/ChainsFL-implementation/HEAD/federatedLearning/_config.yml -------------------------------------------------------------------------------- /federatedLearning/buildModels.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shuoyuan/ChainsFL-implementation/HEAD/federatedLearning/buildModels.py -------------------------------------------------------------------------------- /federatedLearning/data/README.md: -------------------------------------------------------------------------------- 1 | # Data 2 | 3 | MNIST & CIFAR-10 datasets will be downloaded automatically by the torchvision package. 4 | -------------------------------------------------------------------------------- /federatedLearning/data/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shuoyuan/ChainsFL-implementation/HEAD/federatedLearning/data/__init__.py -------------------------------------------------------------------------------- /federatedLearning/data/genesisBlock.pkl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shuoyuan/ChainsFL-implementation/HEAD/federatedLearning/data/genesisBlock.pkl -------------------------------------------------------------------------------- /federatedLearning/main_fed.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shuoyuan/ChainsFL-implementation/HEAD/federatedLearning/main_fed.py -------------------------------------------------------------------------------- /federatedLearning/main_fed_agg.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shuoyuan/ChainsFL-implementation/HEAD/federatedLearning/main_fed_agg.py -------------------------------------------------------------------------------- /federatedLearning/main_fed_asyn.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shuoyuan/ChainsFL-implementation/HEAD/federatedLearning/main_fed_asyn.py -------------------------------------------------------------------------------- /federatedLearning/main_fed_baseline.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shuoyuan/ChainsFL-implementation/HEAD/federatedLearning/main_fed_baseline.py -------------------------------------------------------------------------------- /federatedLearning/main_fed_load.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shuoyuan/ChainsFL-implementation/HEAD/federatedLearning/main_fed_load.py -------------------------------------------------------------------------------- /federatedLearning/main_fed_local.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shuoyuan/ChainsFL-implementation/HEAD/federatedLearning/main_fed_local.py -------------------------------------------------------------------------------- /federatedLearning/main_nn.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shuoyuan/ChainsFL-implementation/HEAD/federatedLearning/main_nn.py -------------------------------------------------------------------------------- /federatedLearning/models/Fed.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shuoyuan/ChainsFL-implementation/HEAD/federatedLearning/models/Fed.py -------------------------------------------------------------------------------- /federatedLearning/models/Nets.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shuoyuan/ChainsFL-implementation/HEAD/federatedLearning/models/Nets.py -------------------------------------------------------------------------------- /federatedLearning/models/Update.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shuoyuan/ChainsFL-implementation/HEAD/federatedLearning/models/Update.py -------------------------------------------------------------------------------- /federatedLearning/models/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shuoyuan/ChainsFL-implementation/HEAD/federatedLearning/models/__init__.py -------------------------------------------------------------------------------- /federatedLearning/models/test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shuoyuan/ChainsFL-implementation/HEAD/federatedLearning/models/test.py -------------------------------------------------------------------------------- /federatedLearning/save/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /federatedLearning/utils/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shuoyuan/ChainsFL-implementation/HEAD/federatedLearning/utils/__init__.py -------------------------------------------------------------------------------- /federatedLearning/utils/options.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shuoyuan/ChainsFL-implementation/HEAD/federatedLearning/utils/options.py -------------------------------------------------------------------------------- /federatedLearning/utils/sampling.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shuoyuan/ChainsFL-implementation/HEAD/federatedLearning/utils/sampling.py --------------------------------------------------------------------------------