lifelines icon indicating copy to clipboard operation
lifelines copied to clipboard

Stratified K-fold CV

Open anbai106 opened this issue 5 months ago • 0 comments

Hi team,

I found that when you fit a very imbalanced dataset, the CoxPHFitter models led to a singular error because the k_fold_cross_validation does not ensure the folds include both case & non-case participants.

Do you have any solution for this or are you going to implement Sklearn stratified K-fold CV?

Thanks

anbai106 avatar Aug 26 '24 20:08 anbai106