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.
Metadata
Release files for smoothstate 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| smoothstate-0.1.1.tar.gz | 12.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| smoothstate-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 18.4 kB
Release files / smoothstate-0.1.1.tar.gz
| Download URL | smoothstate-0.1.1.tar.gz |
|---|---|
| Size | 12.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c0bb38207e46c6dda772640cfae3e9dd72af2b5c7671dc5f55fa9bcc593bbb6d
|
|
BLAKE2b-256 checksum How to use checksums |
6c6573c8f3182495ce437778dc775f55804256ff1685925baa0420f4f04fa259
|
| 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 Aug 19, 2026.
Transparency logRelease files / smoothstate-0.1.1-py3-none-any.whl
| Download URL | smoothstate-0.1.1-py3-none-any.whl |
|---|---|
| Size | 6.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0865fae28467f13176d31659ddb602d0667385b4dc94caa1b826be49daefbf38
|
|
BLAKE2b-256 checksum How to use checksums |
465ed0fc7da751ffa62f5f874727f35be72d924476ba59d8b56106353d6cfe90
|
| 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 Aug 19, 2026.
Transparency log