Metadata-Version: 2.4
Name: volara-ml
Version: 1.3.0
Summary: Plugin for Volara including ML-related tasks. This includes the `Predict` task and the `models` module.
Project-URL: Documentation, https://e11bio.github.io/volara-ml
Project-URL: Source, https://github.com/e11bio/volara-ml
Project-URL: Issues, https://github.com/e11bio/volara-ml/issues
Requires-Python: >=3.12
Description-Content-Type: text/markdown
Requires-Dist: volara>=2.1.1
Requires-Dist: daisy>=1.2.2
Requires-Dist: gunpowder>=1.5.0
Requires-Dist: funlib.geometry>=0.3
Requires-Dist: funlib.persistence>=0.7
Requires-Dist: pydantic>=2.6.3
Provides-Extra: torch
Requires-Dist: torch>=2.4; extra == "torch"
Provides-Extra: jax
Requires-Dist: jax>=0.4.30; extra == "jax"
Requires-Dist: flax>=0.8; extra == "jax"
Requires-Dist: orbax-checkpoint>=0.5; extra == "jax"

[![tests](https://github.com/e11bio/volara-ml/actions/workflows/tests.yaml/badge.svg)](https://github.com/e11bio/volara-ml/actions/workflows/tests.yaml)
[![lint](https://github.com/e11bio/volara-ml/actions/workflows/lint.yaml/badge.svg)](https://github.com/e11bio/volara-ml/actions/workflows/lint.yaml)
[![docs](https://github.com/e11bio/volara-ml/actions/workflows/docs.yaml/badge.svg)](https://e11bio.github.io/volara-ml)
[![publish](https://github.com/e11bio/volara-ml/actions/workflows/publish.yaml/badge.svg)](https://pypi.org/project/volara-ml/)

# volara-ml
A plugin for volara that includes ML models and a `Predict` task

**Documentation:** https://e11bio.github.io/volara-ml

## Install

```bash
pip install volara-ml         # base package
pip install volara-ml[torch]  # with PyTorch support
pip install volara-ml[jax]    # with Jax support
```

# Available blockwise operations:
- `Predict`: Model Prediction (requires `torch` or `jax` extra)

## Contributing

The commands below are the ones CI runs, so a green local run means a green PR.

```bash
git clone https://github.com/e11bio/volara-ml
cd volara-ml
uv sync --extra torch --extra jax                   # dev tools + both backends (from uv.lock)
uv pip install -e .                                 # the package itself (no build backend yet)
uv run pytest                                       # tests with coverage
uv run pytest --no-cov tests/<file>.py              # one file, without the coverage floor
uv run --only-group dev ruff check . && uv run --only-group dev ruff format --check .
uv run ty check                                     # types
# docs: see .github/workflows/docs.yaml (notebooks are converted before sphinx-build)
```

`uv.lock` pins the development environment; the `lock-upgrade` workflow refreshes it monthly and opens a pull request.
