Skip to main content

Azoic

A scikit-learn-compatible Python toolkit for non-life technical tariff (pure premium) modelling: actuarial preprocessing, GLM (glum) + GBM (LightGBM), frequency-severity decomposition, actuarial diagnostics, reproducible runs, GBM-to-GLM distillation, and multiplicative tariff export.

Install

Requires Python 3.12 or newer. In your own uv project:

uv add azoic==0.5.0
uv run azoic --help

For a new project, run uv init --python 3.12 my-pricing-project and cd my-pricing-project first. The self-contained starter compares a direct GLM and raw GBM and exports the fitted GLM using the released package. No checkout, test fixture or Quarto is required.

The hosted site otherwise documents the unreleased checkout. Features such as run_experiment(..., df=...) are absent from 0.5.0; use the file-based starter configuration with that release. The checkout is preparing version 0.6.0; it has not yet been published.

The pending 0.6.0 wheel bundles three user-facing agent skills for modelling, diagnostics and tariff work. Follow agent installation to discover and install them with uvx library-skills; 0.5.0 has no skill bundle.

The full suite runs on locked Python 3.12 dependencies. Separate installed-package checks cover low-version Python 3.12 dependencies and Python 3.14 wheels; see tested environments.

For development or the executable tutorial, clone this repository and run:

uv sync --no-dev                    # runtime only
uv sync                             # default development environment
uv sync --all-extras --all-groups   # everything

Correctness conventions

Frequency models use claim_count / exposure with sample_weight=exposure. deviance_test is exposure-weighted mean Tweedie deviance with fixed power=1.5. Gini is a concentration Gini for ranking; equal prediction scores are evaluated as tied blocks.

Temporal holdouts never split equal timestamps. Tuning selects parameters on an inner split of the outer training partition, then refits on outer training data and reports development validation. Reserve a separate untouched final-test portfolio before experimenting; see the workflow guide. Exported tariffs reject unknown categorical levels and non-finite numeric inputs.

Positive-objective GBMs can be exported through azoic export-tariff --distill; the workbook reproduces the distilled GLM student, not the teacher.

Executable tutorial series

The numbered Quarto book under examples/ runs the complete technical-tariff workflow on pinned OpenML data and then covers tuning, temporal stability, protected-group audit, and manual tariff recipes. Install the Jupyter kernel plus the MLflow, Plotly, and tuning extras; install Quarto separately and ensure its quarto executable is on PATH.

uv sync --group demo --extra mlops --extra plot --extra tune
just demo

The render produces the ignored book under examples/_book/; fetched data, the tariff workbook, reports, and local MLflow files stay under the ignored examples/_artifacts/. To inspect the recorded run afterward:

uv run mlflow ui \
  --backend-store-uri sqlite:///examples/_artifacts/fremtpl2/mlflow.db

Dev

Performance measurement commands and the pending practitioner-observation protocol are in M62 validation. Benchmark results alone do not establish user acceptance or deployment readiness.

just check          # ruff + ty + pytest
just test           # pytest -x
just lint
just format
uv run ty check     # production source types

Metadata

Release files for azoic 0.6.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for azoic 0.6.0
File Size Uploaded Provenance Actions
azoic-0.6.0.tar.gz 96.7 kB With provenance Details for azoic-0.6.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for azoic 0.6.0
File Interpreter ABI Platform Actions
azoic-0.6.0-py3-none-any.whl Python 3 none any Details for azoic-0.6.0-py3-none-any.whl

Total release size: 207.0 kB

Release files / azoic-0.6.0.tar.gz

Download URL azoic-0.6.0.tar.gz
Size 96.7 kB
Tags Source
SHA-256 checksum
How to use checksums
cc156b9b968ab79351f097c9d658a4f03a2ac7e28d11fcc322cc907716fab5fb
BLAKE2b-256 checksum
How to use checksums
7bf70beaa69776bcdc326ff962a717feb1b412f82abf9e279b345ee189cf7ff1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.

Transparency log

Release files / azoic-0.6.0-py3-none-any.whl

Download URL azoic-0.6.0-py3-none-any.whl
Size 110.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7bc62ea24a1c03905ae2f73e317d7ebdeb1e9e2227055bbcc962b957b462759b
BLAKE2b-256 checksum
How to use checksums
d880a2fc0844baf14293b4a3ed042494376d12827feae0b95f3c85ecb8133d9f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.

Transparency log

Security for azoic 0.6.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for azoic-0.6.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page