dswah / pyGAM

[HELP REQUESTED] Generalized Additive Models in Python
https://pygam.readthedocs.io
Apache License 2.0
862 stars 159 forks source link

gam.summary() - return String rather than "printing" to standard out #210

Closed marknormanread closed 5 years ago

marknormanread commented 5 years ago

Or add another method that returns as String to retain backwards compatibility.

This would enable easier saving of statistics to the file system, which can be more useful if incorporating pyGAM into a pipeline.

Currently I'm having to redirect stdout, which works, but it's a bit inelegant.

Thanks!

dswah commented 5 years ago

@marknormanread thats interesting!

most of the statistics printed by the summary() method are stored in gam.statistics_ although they might require a little post-processing

which statistics are you interested in!

-dani

dswah commented 5 years ago

@marknormanread i am going to close this issue with your permission. please re-open it if you see fit!