Published February 20, 2020
| Version v0.24.0
Software
Open
CamDavidsonPilon/lifelines: v0.24.0
Authors/Creators
Description
0.24.0 - 2020-02-20
This version and future versions of lifelines no longer support py35. Pandas 1.0 is fully supported, along with previous version. Minimum Scipy has been bumped to 1.2.0
New features
CoxPHFitterandCoxTimeVaryingFitterhas support for an elastic net penalty, which includes L1 and L2 regression.CoxPHFitterhas new baseline survival estimation methods. Specifically,splinenow estimates the coefficients and baseline survival using splines. The traditional method,breslow, is still the default however.- Regression models have a new
scoremethod that will score your model against a dataset (ex: a testing or validation dataset). The default is to evaluate the log-likelihood, but also the concordance index can be chose. - New
MixtureCureFitterfor quickly creating univariate mixture models. - Univariate parametric models have a
plot_density,density_at_times, and propertydensity_that computes the probability density function estimates. - new dataset for interval regression involving C. Botulinum.
- new
lifelines.fitters.mixins.ProportionalHazardMixinthat implements proportional hazard checks.
API Changes
- Models' prediction method that return a single array now return a Series (use to return a DataFrame). This includes
predict_median,predict_percentile,predict_expectation,predict_log_partial_hazard, and possibly others. - The penalty in Cox models is now scaled by the number of observations. This makes it invariant to changing sample sizes. This change also make the penalty magnitude behave the same as any parametric regression model.
score_on models has been renamedconcordance_index_- models'
.variance_matrix_is now a DataFrame. CoxTimeVaryingFitterno longer requires anid_col. It's optional, and some checks may be done for integrity if provided.- Significant changes to
utils.k_fold_cross_validation. - removed automatically adding
inffromPiecewiseExponentialRegressionFitter.breakpointsandPiecewiseExponentialFitter.breakpoints tie_methodwas dropped from Cox models (it was always Efron anyways...)- Mixins are moved to
lifelines.fitters.mixins find_best_parametric_modelevaluationkwarg has been changed toscoring_method.- removed
_score_andpathfrom Cox model.
Bug fixes
- Fixed
show_censorswithKaplanMeierFitter.plot_cumulative_densitysee issue #940. - Fixed error in
"BIC"code path infind_best_parametric_model - Fixed a bug where left censoring in AFT models was not converging well
- Cox models now incorporate any penalizers in their
log_likelihood_
Files
CamDavidsonPilon/lifelines-v0.24.0.zip
Files
(10.6 MB)
| Name | Size | Download all |
|---|---|---|
|
md5:deefafdc054f7c7c58e7f42d699aeed0
|
10.6 MB | Preview Download |
Additional details
Related works
- Is supplement to
- https://github.com/CamDavidsonPilon/lifelines/tree/v0.24.0 (URL)