A Python library for censored regression.
Project description
The cenreg Package
The Python package cenreg is a repository for probabilistic forecasts such as quantile regression and distribution regression and for censored regression such as survival analysis and interval-censored data analysis.
Features:
- Tree-based models run fast and output accurate predictions.
- Neural network models are implemented both for structured data (e.g., tabular data) and non-structured data (e.g., image data).
- Both models can handle competing risks.
- Both models are based on the (conditional) independence assumption or the non-informative assuption, but they can also handle dependent censoring based on assumed copula.
- Strictly proper scoring rules are implemented to evaluate the discrimination performances of prediction models. The scoring rules can handle right-censored and interval-censored data.
- Binning-free calibration metrics are implemented to evaluate the calibration performances of prediction models. The calibration metrics can handle right-censored and interval-censored data.
Getting Started
Prerequisites
You first need to install SurvSet via pip
pip install SurvSet
Additionally, denpending on the models you want to use, you also need to install
- LightGBM
- PyTorch
Installation
You can install cenreg via pip:
pip install cenreg
Run Sample Code
You can find our sample codes in the notebooks directory.
Documentation
Read the documentation to get started.
Citation
- H. Yanagisawa and S. Akiyama, A Strictly Proper Scoring Rule and a Calibration Metric for Interval-Censored Data Analysis, ICML 2026 (Paper in OpenReview)
- H. Yanagisawa and S. Akiyama, Survival Analysis via Density Estimation, ICML 2025 (Paper in OpenReview)
- H. Yanagisawa, Proper Scoring Rules for Survival Analysis, ICML 2023
Project details
Release history Release notifications | RSS feed
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 cenreg-0.1.1.tar.gz.
File metadata
- Download URL: cenreg-0.1.1.tar.gz
- Upload date:
- Size: 8.2 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aee3efaddac3c0e612cbf13fe0d8f823ff076bc4f4d5a581e7f3b11c44bd9f22
|
|
| MD5 |
89e4116708bc539059f1d41a6c1a670d
|
|
| BLAKE2b-256 |
56abd7251dee930902526d9a5f95e5dfb4c91b435d3da01e528c02eae3ff358a
|
File details
Details for the file cenreg-0.1.1-py3-none-any.whl.
File metadata
- Download URL: cenreg-0.1.1-py3-none-any.whl
- Upload date:
- Size: 44.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ebe81c712af356126d15d76f394232e1b7e87d49871190590d3f532383bbf510
|
|
| MD5 |
b53d73a90bfa05a159bbee88e5790b55
|
|
| BLAKE2b-256 |
a448680961477101df74dd8747a0fbf0bccfb5996ad501853992af8f8ee9de0c
|