CamDavidsonPilon / lifelines

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

Add option to suppress __repr__ when fitting #1589

Open vunh16 opened 6 months ago

vunh16 commented 6 months ago

I usually have a loop where I call fit(), and each iteration will produce a line of lifelines.KaplanMeierFitter fitted with %g observations which just floods my notebook's output. I tried going to class BaseFitter and added s = "" but of course it only floods blank new lines instead. Do you have any suggestions that I could suppress this? Maybe add a verbose parameter?

CamDavidsonPilon commented 6 months ago

Hi @vunh16, thanks for the suggestion. Can you provide a simple reproducible example so I know what to look for in a fix?