Installation

Requirements

  • Python 3.13 or higher

  • numpy>=2.1.0

  • scipy>=1.14.1

  • clarabel>=0.11.1

Install from PyPI

pip install rank-preserving-calibration

Or with uv:

uv add rank-preserving-calibration

Development Installation

Clone the repository and sync the development dependencies:

git clone https://github.com/finite-sample/rank-preserving-calibration.git
cd rank-preserving-calibration
uv sync --group dev --group docs

Verification

import rank_preserving_calibration as rpc

print(rpc.__version__)

Run the test suite:

uv run pytest