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
Provide Initial Guess to Regression Fitters #661
Comments
Yikes, I'm not pleased that surveg and lifelines give different results. Are you able to share an example dataset here (or privately over email)? It's easy enough to let users provide initial values, I can add that to the next release shortly. |
Thanks for the quick response! Unfortunately, I can't share the data publicly nor privately. But I'll be happy to report the status after I'm able to use initial points. :) By the way, I had convergence issues with |
Can you describe your dataset more?
Some information about the fit, too:
|
flexsurvreg does some smarter initializations using summary statistics. From their docs:
|
Thanks! There were some problems with the code I was using. Will report after the experiments are finished. But it's an intercept-only model (no covariates) with datasets that range from fewer than 10 to nearly 100 points (most are suspensions). |
What about using the simpler |
That could be done. It's just that I wanted to compare the AFT fitter with survreg. :) I have other tests with covariates as well. |
@bacalfa, if you update to 0.20.0 (on PyPI now), please try out the new defaults (i.e don't provide (0.20.0 is python3 only, and has some updated dependencies too FYI) |
I'm using Anaconda, and the latest version seems to be 0.19.5. On a related note, |
I just updated conda |
By the way, |
woohoo! Thanks for reporting back! |
It would be great to be able to provide an initial guess point (warm-start) to the regression fitters, such as
WeibullAFTFitter
. I'm referring to this line:lifelines/lifelines/fitters/__init__.py
Line 1018 in d9d3f9f
I've been comparing this particular fitter to R's
survreg
, and for some datasets, their solutions don't agree at all. I'd like to provide the same initial values to both codes and hopefully get the same solution.The text was updated successfully, but these errors were encountered: