An SDK for building applications on top of FLock V1
Project description
Flock SDK
An SDK for building applications on top of FLock V1
Creating a new model
Prerequisites:
You must have docker
and docker compose
installed and set up to run as non-root user.
Installing Flock SDK as a package
Installing the SDK as a python package is pretty simple, all you need to do is run pip install .
. This should make the SDK accessible globally for importing, which is important to run the examples.
If you are running a local flock chain
- Modify the example file and implement the evaluate, train and aggregate functions as required.
- Make sure that IPFS is started by running
docker-compose up
in the client directory - Run
./build_and_upload.sh
to build and upload the model definition to IPFS - Modify the
MODEL_DEFINITION_HASH
in thecontracts/deploy.sh
file in the client directory to match the returned hash - Rebuild the contracts using
docker-compose build
and restart the network usingdocker-compose restart
- Launch the clients using instructions in the client directory's README.
If you are running on the official flock chain
- Modify the example file and implement the evaluate, train and aggregate functions as required.
- Run
./build_and_upload.sh
to build and upload the model definition to IPFS - Create a new FlockTask with the returned IPFS hash
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
flock_sdk-0.0.1.tar.gz
(2.5 kB
view hashes)
Built Distribution
Close
Hashes for flock_sdk-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7a9b874c78cc9c674846e612037eb0a574a801036632ff1455978c1b2a1d6545 |
|
MD5 | 2d3f99449e4d0a58f548bf7844d8937e |
|
BLAKE2b-256 | e50f42e003af9bc37758e4f7d30d291c52798138e767b3fba3af26a836f6a986 |