Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Dec 13, 2024
1 parent 541e505 commit ca4530a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ehrapy/plot/_survival_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ def cox_ph_forestplot(
text_size: int = 12,
color: str = "k",
):
"""Generates a forest plot to visualize the coefficients and confidence intervals of a Cox Proportional Hazards model.
"""Generates a forest plot to visualize the coefficients and confidence intervals of a Cox Proportional Hazards model.
The method requires a fitted CoxPHFitter object from the lifelines library.
Inspired by `zepid.graphics.EffectMeasurePlot <https://readthedocs.org>`_ (zEpid Package, https://pypi.org/project/zepid/).
Expand Down Expand Up @@ -342,7 +342,7 @@ def cox_ph_forestplot(
# check that the coxph object is fitted
if not cox_ph._fitted:
raise ValueError("The CoxPHFitter object must be fitted")

data = cox_ph.summary
auc_col = "coef"

Expand Down

0 comments on commit ca4530a

Please sign in to comment.