Skip to main content

Python wrapper for MOA to allow efficient use of existing algorithms with a more modern API.

Project description

CapyMOA

Banner Image

PyPi Version Join the Discord Documentation GitHub

Machine learning library tailored for data streams. Featuring a Python API tightly integrated with MOA (Stream Learners), PyTorch (Neural Networks), and scikit-learn (Machine Learning). CapyMOA provides a fast python interface to leverage the state-of-the-art algorithms in the field of data streams.

To setup CapyMOA, simply install it via pip. If you have any issues with the installation (like not having Java installed) or if you want GPU support, please refer to the installation guide. Once installed take a look at the tutorials to get started.

# CapyMOA requires Java. This checks if you have it installed
java -version

# CapyMOA requires PyTorch. This installs the CPU version
pip install torch torchvision --index-url https://download.pytorch.org/whl/cpu

# Install CapyMOA and its dependencies
pip install capymoa

# Check that the install worked
python -c "import capymoa; print(capymoa.__version__)"

⚠️ WARNING

CapyMOA is still in the early stages of development. The API is subject to change until version 1.0.0. If you encounter any issues, please report them in GitHub Issues or talk to us on Discord.


Benchmark Image Benchmark comparing CapyMOA against other data stream libraries. The benchmark was performed using an ensemble of 100 ARF learners trained on capymoa.datasets.RTG_2abrupt dataset containing 100,000 samples and 30 features. You can find the code to reproduce this benchmark in notebooks/benchmarking.py. CapyMOA has the speed of MOA with the flexibility of Python and the richness of Python's data science ecosystem.

Cite Us

If you use CapyMOA in your research, please cite us using the following BibTeX item.

@misc{
    gomes2025capymoaefficientmachinelearning,
    title={{CapyMOA}: Efficient Machine Learning for Data Streams in Python},
    author={Heitor Murilo Gomes and Anton Lee and Nuwan Gunasekara and Yibin Sun and Guilherme Weigert Cassales and Justin Jia Liu and Marco Heyden and Vitor Cerqueira and Maroua Bahri and Yun Sing Koh and Bernhard Pfahringer and Albert Bifet},
    year={2025},
    eprint={2502.07432},
    archivePrefix={arXiv},
    primaryClass={cs.LG},
    url={https://arxiv.org/abs/2502.07432},
}

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

capymoa-0.12.0.tar.gz (61.5 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

capymoa-0.12.0-py3-none-any.whl (61.6 MB view details)

Uploaded Python 3

File details

Details for the file capymoa-0.12.0.tar.gz.

File metadata

  • Download URL: capymoa-0.12.0.tar.gz
  • Upload date:
  • Size: 61.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for capymoa-0.12.0.tar.gz
Algorithm Hash digest
SHA256 92e0baf60c8ddf370e0d64275210bc9afb4de5435c09acaf46f7e060d3de51d4
MD5 423ea26522cf6920d697679df244eb96
BLAKE2b-256 c2d6738c9ad7883562bfc596d72c1cc31eeb56a7a2b4fd13fe64a1d8e46c13ff

See more details on using hashes here.

Provenance

The following attestation bundles were made for capymoa-0.12.0.tar.gz:

Publisher: release.yml on adaptive-machine-learning/CapyMOA

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file capymoa-0.12.0-py3-none-any.whl.

File metadata

  • Download URL: capymoa-0.12.0-py3-none-any.whl
  • Upload date:
  • Size: 61.6 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for capymoa-0.12.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f5a2d12d86b50079475714614bf095c1b5d8b906a3ab9480c53308a6b87929fc
MD5 a1c01200d82aed327ec902f70fd8fab1
BLAKE2b-256 32a4aab5b75ac1f4ce46116cec23d1e6e2f54ad2ec1b9e3caa4b5b8b398ad012

See more details on using hashes here.

Provenance

The following attestation bundles were made for capymoa-0.12.0-py3-none-any.whl:

Publisher: release.yml on adaptive-machine-learning/CapyMOA

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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