在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):iamtrask/PySonar开源软件地址(OpenSource Url):https://github.com/iamtrask/PySonar开源编程语言(OpenSource Language):Jupyter Notebook 53.5%开源软件介绍(OpenSource Introduction):PySonar
Sonar is a smart contract library that allows data scientists to publish new models they want to get trained into the ModelRepository and people to pick models they can train on their personal data. You can find a working proof of concept in the notebooks directory. SetupUsing DockerUsing Docker is the easiest way to get this running.
UsageBootstrap environmentBefore running the demo there are a couple of prerequisites you need to install. Base librariesBefore installing the python packages you need to make sure your system holds a set of basic math libraries required for the encryption operations (
For MacOS with brew just run: brew install libmpc mpfr gmp For Linux run: apt-get install libgmp3-dev libmpfr-dev libmpc-dev python3-dev Then run:
SolidityThe solidity tools are required to compile the contract of our demo. See installing solidity for instructions for your platform. TruffleIn order to import ABIs you'll need to install truffle.
IPFSAs the network itself is too big to actually host it on the blockchain you need brew install ipfs After installation is complete run PIP packagesMake sure you have a clean python3 install and continue with installing all the packages pip install -r requirements.txt PIP package maintenancePySonar utilizes pip-tools to help with maintaining PIP packages (https://github.com/jazzband/pip-tools) To update all packages, periodically re-run
Build local librariesFirst you need to get python setup.py install Then make sure you also have the Import Smart Contract ABIThe interface for our make import-abi which will place the file at StartAfter you made sure all the installation steps are done you need to set up your local mock environment. # start the ipfs daemon in the background
ipfs daemon&
# run local ethereum mock
testrpc -a 1000 Now open a second shell, start the notebook and follow its instructions jupyter notebook notebooks Known issues
If you experience any problems while running this demo please create a github issue and help us get better. LicenseApache-2.0 by OpenMined contributors |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论