CamDavidsonPilon / lifelines

Survival analysis in Python
lifelines.readthedocs.org
MIT License
2.32k stars 551 forks source link

ENH use scientific number formatting for delta and newton decrement in Cox fitters #1528

Closed mathurinm closed 1 year ago

mathurinm commented 1 year ago

Hello, When pushing the solver to convergence, both delta and newton_decrement go to zero, so the displayed information looks like this when they becomes smaller than 1e-5: image

With the proposed change a useful value is printed all along convergence: image

CamDavidsonPilon commented 1 year ago

Love it!

CamDavidsonPilon commented 1 year ago

Thanks @mathurinm