https://github.com/naotoo1/prosemble
A python package for prototype-based machine learning models
https://github.com/naotoo1/prosemble
interpretable-ai lvq machine-learning prototype-based-clustering prototype-based-models python
Last synced: 18 days ago
JSON representation
A python package for prototype-based machine learning models
- Host: GitHub
- URL: https://github.com/naotoo1/prosemble
- Owner: naotoo1
- License: mit
- Created: 2022-04-30T01:12:59.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2025-10-04T19:36:51.000Z (8 months ago)
- Last Synced: 2025-11-27T13:57:19.021Z (6 months ago)
- Topics: interpretable-ai, lvq, machine-learning, prototype-based-clustering, prototype-based-models, python
- Language: Python
- Homepage: https://naotoo1.github.io/prosemble/
- Size: 1.1 MB
- Stars: 7
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: docs/contributing.md
- License: LICENSE
Awesome Lists containing this project
README
# Prosemble
[](https://www.python.org/downloads/)
[](https://pypi.org/project/prosemble/)
[](https://opensource.org/licenses/MIT)
[](https://github.com/naotoo1/prosemble/actions/workflows/ci.yml)
[](https://prosemble.readthedocs.io/en/latest/)
## Description
This is a JAX-based Python toolbox for research and application of prototype-based machine learning methods and other interpretable models. All models are JIT-compiled and run on CPU, GPU and TPU. The focus of Prosemble is ease-of-use, extensibility and speed.
## Installation
Prosemble can be installed using pip:
```bash
pip install prosemble
```
To install with JAX support:
```bash
pip install "prosemble[jax]" # CPU
pip install "prosemble[jax-cuda12]" # GPU (CUDA 12)
```
To install the development version:
```bash
git clone https://github.com/naotoo1/prosemble.git
cd prosemble
pip install -e ".[all]"
```
## Documentation
The full documentation is available at [prosemble.readthedocs.io](https://prosemble.readthedocs.io).
To build locally:
```bash
cd sphinx-docs && make html
```
## Examples
See the [examples/](examples/) directory.
## Development
Prosemble provides a reproducible development environment using [devenv](https://devenv.sh/getting-started/):
```bash
git clone https://github.com/naotoo1/prosemble.git
cd prosemble
devenv shell
uv sync --extra jax --extra dev
uv run pytest tests/ -x -q
```
## Citation
```bibtex
@misc{Otoo_Prosemble_2022,
author = {Otoo, Nana Abeka},
title = {Prosemble},
year = {2022},
publisher = {GitHub},
journal = {GitHub repository},
howpublished = {\url{https://github.com/naotoo1/Prosemble}},
}
```