Skip to main content

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.8 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

Currently we only support macos and unix systems.

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

Metadata

Release files for colearn 0.2.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for colearn 0.2.8
File Size Uploaded Provenance
colearn-0.2.8.tar.gz 54.5 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for colearn 0.2.8
File Interpreter ABI Platform
colearn-0.2.8-py3-none-any.whl Python 3 none any Details

Total release size: 171.2 kB

Release files / colearn-0.2.8.tar.gz

Download URL colearn-0.2.8.tar.gz
Size 54.5 kB
Tags Source
SHA-256 checksum
How to use checksums
eee685f89af7c7d3714c18c71425a7d5110a6c59938a78a37b5c56acf027f2e3
BLAKE2b-256 checksum
How to use checksums
bb6cd785e50e1008db67e85a019af9046140a4745f5512d8f3edd4675dedf5d0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.7.12

Release files / colearn-0.2.8-py3-none-any.whl

Download URL colearn-0.2.8-py3-none-any.whl
Size 116.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5957e110b4a5cc57be76f026e32be55fa7f4f8eec05565ef0c2d49a2bffa5f02
BLAKE2b-256 checksum
How to use checksums
9e112e45fdd9afaaa32693a2b1ad26a6c703da2417a408ef90517282370f9d94
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.7.12

Security for colearn 0.2.8

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page