https://github.com/soda-inria/hazardous
Competing Risks and Survival Analysis
https://github.com/soda-inria/hazardous
competing-risks data-science gradient-boosting machine-learning survival-analysis
Last synced: 6 months ago
JSON representation
Competing Risks and Survival Analysis
- Host: GitHub
- URL: https://github.com/soda-inria/hazardous
- Owner: soda-inria
- License: mit
- Created: 2023-05-15T15:47:25.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-03-30T14:02:57.000Z (6 months ago)
- Last Synced: 2025-03-30T15:20:06.303Z (6 months ago)
- Topics: competing-risks, data-science, gradient-boosting, machine-learning, survival-analysis
- Language: Python
- Homepage: https://soda-inria.github.io/hazardous/
- Size: 9.2 MB
- Stars: 92
- Watchers: 8
- Forks: 17
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGES.rst
- License: LICENSE
Awesome Lists containing this project
README
# HΛZΛRDOUS
Predictive Competing Risks and Survival Analysis.
[](https://github.com/soda-inria/hazardous/actions/workflows/test.yml)
## Installation and usage
Installation:
```
pip install hazardous
```Then browse the [online documentation](https://soda-inria.github.io/hazardous/)
and run the `examples/` to get started.## Development and testing
Install in "editable" mode in your current Python env (after a standard installation to install the dependencies):
```
pip install flit
pip install . -v
pip install -e ".[dev]" --no-build-isolation -v
pre-commit install
```Run the tests with nox to test in an environment that matches exactly on
specific CI build, for instance:```
nox -p 3.11 -s test_latest_from_pypi -r
```The `-r` flag makes it possible to reuse an existing env.
You can also install the test dependencies in the current env and use `pytest`
directly with arbitrary command line arguments:```
pip install -e ".[test]" --no-build-isolation -v
pytest -vl -x -k test_name_pattern
```## Building the doc
Using `nox`:
```
nox -s doc -r
```or manually:
```
pip install -e ".[doc]" --no-build-isolation -v
cd doc
make html
```The resulting html files are generated under the `doc/_build` folder.
## Building a release
```
pip install build
python -m build
ls dist/
```TODO: make it possible to automate a release using GitHub Actions for a given tag.