scikit-learn/scikit-learn — pull request #1171 by GaelVaroquaux (2012-09-20 07:17:01+00:00)
Title: WIP: Progress logger

Sketch of a small logging framework for the scikit-learn, to avoid using 'print'.

This is still very a work in progress, but I am opening a pull request to enable comments.

TODOS:

* Convert all prints to logger.progress
* Implement and use 'short_message'
* Implement a progress_context to monitor better progress in for loops (may be done in a later PR)

As a side note, as this branch touches to many files, it is going to lead to merge nightmares. I am going to try to rebase it often (which will probably screw up github :( )

Also, the 'internal/object_log.py' example will probably be removed at some point. It is there only to enable demo and discussion of the API of the ProgressLogger.