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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c0bb38207e46c6dda772640cfae3e9dd72af2b5c7671dc5f55fa9bcc593bbb6d
|
|
| MD5 |
2e4ea594457db6ae7c04ec3360340d95
|
|
| BLAKE2b-256 |
6c6573c8f3182495ce437778dc775f55804256ff1685925baa0420f4f04fa259
|
Provenance
The following attestation bundles were made for smoothstate-0.1.1.tar.gz:
Publisher:
publish.yml on uriahf/smoothstate
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
smoothstate-0.1.1.tar.gz -
Subject digest:
c0bb38207e46c6dda772640cfae3e9dd72af2b5c7671dc5f55fa9bcc593bbb6d - Sigstore transparency entry: 2516225935
- Sigstore integration time:
-
Permalink:
uriahf/smoothstate@636836f27d4ad5d28b5f64e72ae35c91fdc20974 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/uriahf
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@636836f27d4ad5d28b5f64e72ae35c91fdc20974 -
Trigger Event:
release
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0865fae28467f13176d31659ddb602d0667385b4dc94caa1b826be49daefbf38
|
|
| MD5 |
de1368406c8335cfa21250cd84489899
|
|
| BLAKE2b-256 |
465ed0fc7da751ffa62f5f874727f35be72d924476ba59d8b56106353d6cfe90
|
Provenance
The following attestation bundles were made for smoothstate-0.1.1-py3-none-any.whl:
Publisher:
publish.yml on uriahf/smoothstate
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
smoothstate-0.1.1-py3-none-any.whl -
Subject digest:
0865fae28467f13176d31659ddb602d0667385b4dc94caa1b826be49daefbf38 - Sigstore transparency entry: 2516226172
- Sigstore integration time:
-
Permalink:
uriahf/smoothstate@636836f27d4ad5d28b5f64e72ae35c91fdc20974 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/uriahf
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@636836f27d4ad5d28b5f64e72ae35c91fdc20974 -
Trigger Event:
release
-
Statement type: