This repository contains code for decentralized PCA written for the new COINSTAC simulator (v4.0.0
).
- local.py - reads input data and parameters, triggers computation of the local PCA, then sends results to remote site.
- remote.py - aggregates the local PCA results sent by local sites and returns the global PCA.
- compspec.json - computation specifications.
- ancillary.py - contains general computation subroutines utilized both by local and remote.
- local_ancillary.py - contains functions that implement different steps of the local computation.
- utils.py - utility functions.
- Python 3.6.6
- coinstac-simulator 4.0.0
- Update
npm
:
sudo npm i npm@latest -g
- Install
coinstac-simulator
:
sudo npm i -g [email protected]
- Clone this repository:
git clone https://github.com/rsilva8/decentralized-pca
- Change directory:
cd decentralized-pca
- Build the docker image (Docker must be running):
docker build -t decentralized-pca .
- Run the code:
sudo coinstac-simulator