Skip to content

Commit cae4955

Browse files
Merge pull request #1095 from CamDavidsonPilon/v0.25.0
V0.25.0
2 parents 8ede4fa + 6c3ff70 commit cae4955

File tree

67 files changed

+7457
-4421
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+7457
-4421
lines changed

CHANGELOG.md

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,39 @@
11
## Changelog
22

3+
#### 0.25.0 - 2020-07-27
4+
5+
##### New features
6+
- Formulas! *lifelines* now supports R-like formulas in regression models. See docs [here]().
7+
- `plot_covariate_group` now can plot other y-values like hazards and cumulative hazards (default: survival function).
8+
- `CoxPHFitter` now accepts late entries via `entry_col`.
9+
- `calibration.survival_probability_calibration` now works with out-of-sample data.
10+
- `print_summary` now accepts a `column` argument to filter down the displayed values. This helps with clutter in notebooks, latex, or on the terminal.
11+
- `add_at_risk_counts` now follows the cool new KMunicate suggestions
12+
13+
14+
##### API Changes
15+
- With the introduction of formulas, all models can be using formulas under the hood.
16+
- For both custom regression models or non-AFT regression models, this means that you no longer need to add a constant column to your DataFrame (instead add a `1` as a formula string in the `regressors` dict). You may also need to remove the T and E columns from `regressors`. I've updated the models in the `\examples` folder with examples of this new model building.
17+
- Unfortunately, if using formulas, your model will not be able to be pickled. This is a problem with an upstream library, and I hope to have it resolved in the near future.
18+
- `plot_covariate_groups` has been deprecated in favour of `plot_partial_effects_on_outcome`.
19+
- The baseline in `plot_covariate_groups` has changed from the *mean* observation (including dummy-encoded categorical variables) to *median* for ordinal (including continuous) and *mode* for categorical.
20+
- Previously, *lifelines* used the label `"_intercept"` to when it added a constant column in regressions. To align with Patsy, we are now using `"Intercept"`.
21+
- In AFT models, `ancillary_df` kwarg has been renamed to `ancillary`. This reflects the more general use of the kwarg (not always a DataFrame, but could be a boolean or string now, too).
22+
- Some column names in datasets shipped with lifelines have changed.
23+
- The never used "lifelines.metrics" is deleted.
24+
- With the introduction of formulas, `plot_covariate_groups` (now called `plot_partial_effects_on_outcome`) behaves differently for transformed variables. Users no longer need to add "derivatives" features, and encoding is done implicitly. See docs [here](https://lifelines.readthedocs.io/en/latest/Survival%20Regression.html#plotting-the-effect-of-varying-a-covariate).
25+
- all exceptions and warnings have moved to `lifelines.exceptions`
26+
27+
##### Bug fixes
28+
- The p-value of the log-likelihood ratio test for the CoxPHFitter with splines was returning the wrong result because the degrees of freedom was incorrect.
29+
- better `print_summary` logic in IDEs and Jupyter exports. Previously it should not be displayed.
30+
- p-values have been corrected in the `SplineFitter`. Previously, the "null hypothesis" was no coefficient=0, but coefficient=0.01. This is now set to the former.
31+
- fixed NaN bug in `survival_table_from_events` with intervals when no events would occur in a interval.
32+
333
#### 0.24.15 - 2020-07-09
434

535
##### New features
6-
- improved algorithm choice for large Dataframes for Cox models. Should see a significant performance boost.
36+
- improved algorithm choice for large DataFrames for Cox models. Should see a significant performance boost.
737

838
##### Bug fixes
939
- fixed `utils.median_survival_time` not accepting Pandas Series.

0 commit comments

Comments
 (0)