Make learn.recorder.plot print to a file

I’d like to modify learner.recorder.plot() to have a dest_file parameter that causes the output of learner.plot to be printed to file.
This is because i’m currently training models on a server where i cannot install Jupyter on. I believe a couple of people might be in similar scenarios and this will help them out.
Are there any concerns i should be aware of as i prepare a Pull Request? Additional guidance/ feedback/ opinions accepted.

1 Like

The recorder plot methods have a return_fig kwarg that will return the figure object. You can then call savefig on the figure to save it to a file.

1 Like