Skip to content
/ Sonar Public
forked from iamtrask/Sonar

Decentralized Machine Learning Server (hosted on Blockchain) 用区块链做分布式机器学习

License

Notifications You must be signed in to change notification settings

eos21/Sonar

 
 

Repository files navigation

Sonar

Chat on Slack Build Status

Sonar observes all models being trained and ensures that occuppation occurs fairly. It’s a smart contract running on an Ethereum Blockchain that holds bounties and stores pointers to AI models on IPFS.

Using Docker

We prepared a Docker container of the Sonar smart contract running on a private in-memory ethereum blockchain.

Run

docker run -d -p 9545:9545 openmined/sonar:edge
# :edge for the latest dev build
# :latest (default) for stable builds

Everytime you restart the docker container all interactions to the chain will be reset and you will have a clean image (with nothing but the contract).

Local installation

Get the repo
git clone [email protected]:OpenMined/Sonar.git
cd Sonar
npm install
Start the development environment

Sonar uses truffle develop built in environment on http:https://127.0.0.1:9545. It will display the first 10 accounts and the mnemonic used to create those accounts.

npm run develop
Deploy contracts

In a new tab, compile and deploy the contracts

npm run migrate
Test
npm test

About

Decentralized Machine Learning Server (hosted on Blockchain) 用区块链做分布式机器学习

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages

  • JavaScript 100.0%