dcurves

Decision Curve Analysis in Python

Functions exported by this package:

  • dca - Decision curve analysis for binary and survival outcomes
  • plot_graphs - Plot net benefit or net intervention avoided
 1"""
 2Decision Curve Analysis in Python
 3
 4Functions exported by this package:
 5
 6- `dca` - Decision curve analysis for binary and survival outcomes
 7- `plot_graphs` - Plot net benefit or net intervention avoided
 8
 9"""
10
11import os
12from dcurves.dca import dca
13from dcurves.plot_graphs import plot_graphs
14
15# ---------------------------------------------------------------------------
16# Dynamic version: sourced from installed package metadata to avoid
17# hard-coding and drift. Falls back to a placeholder when running directly
18# from a checkout without installation.
19# ---------------------------------------------------------------------------
20
21from importlib import metadata as _metadata
22
23try:
24    __version__ = _metadata.version(__name__)
25except _metadata.PackageNotFoundError:  # package not installed (e.g. source tree)
26    __version__ = "0.0.0.dev0"
27
28data = os.path.join(os.path.dirname(os.path.abspath(__file__)), "data")
data = '/home/runner/work/dcurves/dcurves/dcurves/data'