Skip to main content

smoothstate

Fast, dependency-light smoothing of state probabilities for Python, built for Polars.

smoothstate provides focused smoothing primitives for model-evaluation workflows. It was created to support the smooth calibration machinery in rtichoke without requiring a general-purpose survival-modeling stack at runtime.

The package currently includes:

  • smooth_binary_state() for smoothing binary state probabilities over a continuous predictor.
  • smooth_state_cox() for time-dependent smoothing with a complementary log-log transformed probability, a 3-knot restricted cubic spline, and a secondary Cox model.

The Cox implementation is continuously validated against Python lifelines and R survival::coxph(). In the current GitHub Actions benchmark it reproduces the reference curves to numerical precision while running roughly 26–39× faster than lifelines for this deliberately narrow workload.

Installation

uv add smoothstate

Until the first PyPI release is published, install directly from GitHub:

uv add git+https://github.com/uriahf/smoothstate

Documentation

See the Great Docs site for the user guide, implementation details, benchmarks, and API reference.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

smoothstate-0.1.1.tar.gz (12.3 kB view details)

Uploaded Source

Built Distribution

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

smoothstate-0.1.1-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file smoothstate-0.1.1.tar.gz.

File metadata

  • Download URL: smoothstate-0.1.1.tar.gz
  • Upload date:
  • Size: 12.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for smoothstate-0.1.1.tar.gz
Algorithm Hash digest
SHA256 c0bb38207e46c6dda772640cfae3e9dd72af2b5c7671dc5f55fa9bcc593bbb6d
MD5 2e4ea594457db6ae7c04ec3360340d95
BLAKE2b-256 6c6573c8f3182495ce437778dc775f55804256ff1685925baa0420f4f04fa259

See more details on using hashes here.

Provenance

The following attestation bundles were made for smoothstate-0.1.1.tar.gz:

Publisher: publish.yml on uriahf/smoothstate

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

File details

Details for the file smoothstate-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: smoothstate-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 6.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for smoothstate-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0865fae28467f13176d31659ddb602d0667385b4dc94caa1b826be49daefbf38
MD5 de1368406c8335cfa21250cd84489899
BLAKE2b-256 465ed0fc7da751ffa62f5f874727f35be72d924476ba59d8b56106353d6cfe90

See more details on using hashes here.

Provenance

The following attestation bundles were made for smoothstate-0.1.1-py3-none-any.whl:

Publisher: publish.yml on uriahf/smoothstate

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

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 files

0.1.0

2 files

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