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.0.tar.gz (11.6 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.0-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: smoothstate-0.1.0.tar.gz
  • Upload date:
  • Size: 11.6 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.0.tar.gz
Algorithm Hash digest
SHA256 523853765dfaa96c558cc5e80b58bb63452cb52c7a4828897aa29c021659ebfb
MD5 939086642f313b38185933921e11e206
BLAKE2b-256 c838a6438743df7c506aa7120166fcf40dc64ab2c1f5edd28f5b42f0a9223590

See more details on using hashes here.

Provenance

The following attestation bundles were made for smoothstate-0.1.0.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.0-py3-none-any.whl.

File metadata

  • Download URL: smoothstate-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.8 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 01b8298c695836fff35bd24836aade93fe1ceea230711fdd45f424ec54beab65
MD5 e55680d9b05e8af0a2470781b4a975ad
BLAKE2b-256 674c61ef15e3bd5eb79a659472d77ba1945b67698355cb816f2c2ef5e30dd4b0

See more details on using hashes here.

Provenance

The following attestation bundles were made for smoothstate-0.1.0-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

0.1.1

2 files

This release

0.1.0 This release

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