Skip to main content

The Standalone Fetch AI Collective Learning Framework

Project description

Welcome to the Fetch.ai Collective Learning

Colearn is a library that enables privacy-preserving decentralized machine learning tasks on the FET network.

This blockchain-mediated collective learning system enables multiple stakeholders to build a shared machine learning model without needing to rely on a central authority. This library is currently in development.

The collective learning protocol allows learners to collaborate on training a model without requiring trust between the participants. Learners vote on updates to the model, and only updates which pass the quality threshold are accepted. This makes the system robust to attempts to interfere with the model by providing bad updates. For more details on the collective learning system see here

Current Version

We have released v0.2.6 of the Colearn Machine Learning Interface, the first version of an interface that will allow developers to prepare for future releases. Together with the interface we provide a simple backend for local experiments. This is the first backend with upcoming blockchain ledger based backends to follow.
Future releases will use similar interfaces so that learners built with the current system will work on a different backend that integrates a distributed ledger and provides other improvements. The current framework will then be used mainly for model development and debugging. We invite all users to experiment with the framework, develop their own models, and provide feedback!

See the most up-to-date documentation at fetchai.github.io/colearn or the documentation for the latest release at docs.fetch.ai/colearn.

Installation

To use the latest stable release we recommend installing the package from PyPi

To install with support for Keras and Pytorch:

pip install colearn[all]

To install with just support for Keras or Pytorch:

pip install colearn[keras]
pip install colearn[pytorch]

Running the examples

Examples are available in the colearn_examples module. To run the Mnist demo in Keras or Pytorch run:

python -m colearn_examples.ml_interface.keras_mnist
python -m colearn_examples.ml_interface.pytorch_mnist
  • Or they can be accessed from colearn/colearn_examples by cloning the colearn repo

    Please note that although all the examples are always available, which you can run will depend on your installation. If you installed only colearn[keras] or colearn[pytorch] then only their respective examples will work.

For more instructions see the documentation at fetchai.github.io/colearn/installation

After installation we recommend running a demo , or seeing the examples

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

colearn-0.2.6.tar.gz (51.1 kB view details)

Uploaded Source

Built Distribution

colearn-0.2.6-py3-none-any.whl (113.5 kB view details)

Uploaded Python 3

File details

Details for the file colearn-0.2.6.tar.gz.

File metadata

  • Download URL: colearn-0.2.6.tar.gz
  • Upload date:
  • Size: 51.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.7.9

File hashes

Hashes for colearn-0.2.6.tar.gz
Algorithm Hash digest
SHA256 969c5d6f33ac3d8dd7e66b5ddb011fd73b3324f1c65b59004486682415b764bc
MD5 2886d18433c8bd0b6ca9a844ab8d58c9
BLAKE2b-256 9514f3ed66895c6c3a788c9a8d8e399982a3759e9335ecf929b900e46e55cffb

See more details on using hashes here.

File details

Details for the file colearn-0.2.6-py3-none-any.whl.

File metadata

  • Download URL: colearn-0.2.6-py3-none-any.whl
  • Upload date:
  • Size: 113.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.7.9

File hashes

Hashes for colearn-0.2.6-py3-none-any.whl
Algorithm Hash digest
SHA256 e012ebb350fb5ff92cd661542e4e40bcbbb38fe29f2a4ba7fe643790dc639820
MD5 7edca5870e8ce73691efc94ff9c8e3f8
BLAKE2b-256 c26d8d26956b3a00c40188de0e5dbc462cfdf83fb45a20ff7bda7c674b828976

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page