-
-
Notifications
You must be signed in to change notification settings - Fork 560
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Parametric regression models may have been misreporting results pre-24.0 #931
Comments
I've added some peripheral tests, and an |
I think this problem has reappeared but now with the |
Hi Cameron, I am running your example on customer churn https://github.com/CamDavidsonPilon/lifelines/blob/master/examples/Customer%20Churn.ipynb . It seems I get this type of error when I call the fitter: "ValueError: could not convert string to float: 'Female' " How shoud I change the code? |
Hi @StefanoBandera123 - should be fixed now |
TLDR: if you have been using a custom parametric regression model, or
GeneralizedGammaRegressionFitter
, you should update your code ASAP. Users of parametric AFT models are fine.It was discovered today that the parameters estimated in a parametric regression model could be not associated to the correct label (i.e. variable name). In practice, when a user hit
print_summary
, they would be displayed with the correct estimates but with the wrong label beside it. This problem would also extend to any prediction or plotting methods.The root problem was a reordering of a dictionary in the autograd
flatten
function. Ex:lifelines should have performed an
unflatten
on the result to recover the original ordering, but it didn't.It was first discovered in the documentation's example of the three parameter Cure model (of which there are no tests, since it was an example). Thankfully, almost all lifelines implemented parametric regression fitters have tests against other survival libraries, and they are fine. However,
GeneralizedGammaRegressionFitter
does not have tests against other libraries, and could be reporting incorrect values.The text was updated successfully, but these errors were encountered: