Skip to main content

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

Project details


Download files

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

Source Distribution

cenreg-0.1.2.tar.gz (8.3 MB view details)

Uploaded Source

Built Distribution

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

cenreg-0.1.2-py3-none-any.whl (44.4 kB view details)

Uploaded Python 3

File details

Details for the file cenreg-0.1.2.tar.gz.

File metadata

  • Download URL: cenreg-0.1.2.tar.gz
  • Upload date:
  • Size: 8.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for cenreg-0.1.2.tar.gz
Algorithm Hash digest
SHA256 8bab2656a0046dc4abfe2e36b7ce512ee74555406d2f27e4ef7b76f3dd0e9699
MD5 79ee3ce54230afa4fc2bdf8ffd55c962
BLAKE2b-256 ea8dd6f2773188200d2594e6ca994c5b5c9644ee16be0f3b2643cba02d7f8fcf

See more details on using hashes here.

File details

Details for the file cenreg-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: cenreg-0.1.2-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

Hashes for cenreg-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 534a3dac2ffc8a09c90e27640acd0fa4753f6a81a336d79e628bb6fd6fbea57b
MD5 3afc74e7e2e0e31be24d81b6549396b9
BLAKE2b-256 4bbbdb468da75402587d20ebda5168069875f9ac04453e4edc85222da66f53b0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page