lifelines icon indicating copy to clipboard operation
lifelines copied to clipboard

Add option to suppress __repr__ when fitting

Open vunh16 opened this issue 2 years ago • 1 comments

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?

vunh16 avatar Dec 22 '23 04:12 vunh16

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

CamDavidsonPilon avatar Dec 30 '23 20:12 CamDavidsonPilon