The highlights of this release include the addition of sksurv.metrics.brier_score and sksurv.metrics.integrated_brier_score and compatibility with scikit-learn 0.23.
predict_survival_function and predict_cumulative_hazard_function of sksurv.ensemble.RandomSurvivalForest and sksurv.tree.SurvivalTree can now return an array of sksurv.functions.StepFunction, similar to sksurv.linear_model.CoxPHSurvivalAnalysis by specifying return_array=False. This will be the default behavior starting with 0.14.0.
Note that this release fixes a bug in estimating inverse probability of censoring weights (IPCW), which will affect all estimators relying on IPCW.
Enhancements
- Make build system compatible with PEP-517/518.
- Added sksurv.metrics.brier_score and sksurv.metrics.integrated_brier_score (#101).
- sksurv.functions.StepFunction can now be evaluated at multiple points in a single call.
- Update documentation on usage of
predict_survival_functionand
predict_cumulative_hazard_function(#118). - The default value of
alpha_min_ratioof sksurv.linear_model.CoxnetSurvivalAnalysis will now depend on then_samples/n_featuresratio. Ifn_samples > n_features, the default value is 0.0001 Ifn_samples <= n_features, the default value is 0.01. - Add support for scikit-learn 0.23 (#119).
Deprecations
predict_survival_functionandpredict_cumulative_hazard_functionof sksurv.ensemble.RandomSurvivalForest and sksurv.tree.SurvivalTree will return an array of sksurv.functions.StepFunction in the future (as sksurv.linear_model.CoxPHSurvivalAnalysis does). For the old behavior, usereturn_array=True.
Bug fixes
- Fix deprecation of importing joblib via sklearn.
- Fix estimation of censoring distribution for tied times with events. When estimating the censoring distribution, by specifying
reverse=Truewhen calling sksurv.nonparametric.kaplan_meier_estimator, we now consider events to occur before censoring. For tied time points with an event, those with an event are not considered at risk anymore and subtracted from the denominator of the Kaplan-Meier estimator. The change affects all functions relying on inverse probability of censoring weights, namely: - Throw an exception when trying to estimate c-index from uncomparable data (#117).
- Estimators in
sksurv.svmwill now throw an exception when trying to fit a model to data with uncomparable pairs.