Skip to main content

Python toolbox for Compressive Learning (machine learning from a sketch)

Project description

The pycle toolbox

Pycle stands for PYthon Compressive LEarning; it is a toolbox of methods to perform compressive learning (also known as sketched learning), where the training set is not used directly but first heavily compressed; this allows to learn from large-scale datasets with drastically reduced computational resources.

Pycle is now stable (version 1.0), but still under development, so don't hesitate to report bugs or other difficulties encountered with the toolbox.

Contents of this repo:

For documentation:

  • A "Guide" folder with semi-detailed introductory guide to this toolbox.
  • A series of "DEMO_i" jupyter notebooks, that illustrate some core concepts of the toolbox in practice.

If you're new here, I suggest you start by opening either of those items first to get a hang of what this is all about.

The code itself, located in the "pycle" folder, structured into 3 main files:

  • sketching.py contains everything related to building a feature map and sketching a dataset with it;
  • compressive_learning.py contains the actual learning algorithms from that sketch, for k-means and GMM fitting for example;
  • utils.py contains a diverse set of functions that can be useful, e.g., for generating synthetic datasets, or evaluating the learned models through different metrics and visualization utilities.

Note that if you want to use the core code of pycle direcltly without downloading this entire repository, you can install it directly from PyPI by typing pip install pycle

Citing this toolbox:

If you publish research using this toolbox, please follow this link for to get citation references (e.g., to generate BibTeX export files)

DOI

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

pycle-1.2.tar.gz (35.6 kB view hashes)

Uploaded Source

Built Distribution

pycle-1.2-py3-none-any.whl (38.1 kB view hashes)

Uploaded Python 3

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