Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Visualize remaining training time when fitting a GLM object. #379

Closed
geektoni opened this issue May 13, 2020 · 3 comments
Closed

Visualize remaining training time when fitting a GLM object. #379

geektoni opened this issue May 13, 2020 · 3 comments

Comments

@geektoni
Copy link
Contributor

When training a model it would be beneficial to visualize some kind of progress bar to understand how much time it will take to complete all the iterations (at least if we do not converge).

For instance, this feature could be easily added by wrapping a range object with tqdm (https://github.com/tqdm/tqdm). A flag could be then passed to the GLM object to enable/disable this feature.

Any thoughts on this?

geektoni added a commit to geektoni/pyglmnet that referenced this issue May 13, 2020
GLM objects can show the current training progress statistics (remaining time, iterations/sec, etc.).
This is true also for GLMCV objects.

* Add tqdm (https://github.com/tqdm/tqdm/) as requirement.
@jasmainak
Copy link
Member

I think you might be able to achieve this using logging module or print commands?

@geektoni
Copy link
Contributor Author

I think you might be able to achieve this using logging module or print commands?

I'm not very familiar with the logging module, but I guess it depends on how much the users care about the "visual" experience. It would be possible to add just print statement all over the place, but I guess it wouldn't be a very elegant solution (too many print would kind of pollute the codebase).

geektoni added a commit to geektoni/pyglmnet that referenced this issue Jun 22, 2020
GLM objects can show the current training progress statistics (remaining time, iterations/sec, etc.).
This is true also for GLMCV objects.

* Use tqdm (https://github.com/tqdm/tqdm/) if available. If it is not available, then we use the
  non-interactive version instead.
geektoni added a commit to geektoni/pyglmnet that referenced this issue Jun 22, 2020
GLM objects can show the current training progress statistics (remaining time, iterations/sec, etc.).
This is true also for GLMCV objects.

* Use tqdm (https://github.com/tqdm/tqdm/) if available. If it is not available, then we use the
  non-interactive version instead.
geektoni added a commit to geektoni/pyglmnet that referenced this issue Jun 23, 2020
GLM objects can show the current training progress statistics (remaining time, iterations/sec, etc.).
This is true also for GLMCV objects.

* Use tqdm (https://github.com/tqdm/tqdm/) if available. If it is not available, then we use the
  non-interactive version instead.
* Use tqdm.auto to easily switch automatically from command line to notebook.
* Update what's new section.
geektoni added a commit to geektoni/pyglmnet that referenced this issue Jun 27, 2020
GLM objects can show the current training progress statistics (remaining time, iterations/sec, etc.).
This is true also for GLMCV objects.

* Use tqdm (https://github.com/tqdm/tqdm/) if available. If it is not available, then we use the
  non-interactive version instead.
* Use tqdm.auto to easily switch automatically from command line to notebook.
* Update What's New section.
geektoni added a commit to geektoni/pyglmnet that referenced this issue Jun 27, 2020
GLM objects can show the current training progress statistics (remaining time, iterations/sec, etc.).
This is true also for GLMCV objects.

* Use tqdm (https://github.com/tqdm/tqdm/) if available. If it is not available, then we use the
  non-interactive version instead.
* Use tqdm.auto to easily switch automatically from command line to notebook.
* Update What's New section.
geektoni added a commit to geektoni/pyglmnet that referenced this issue Jul 21, 2020
GLM objects can show the current training progress statistics (remaining time, iterations/sec, etc.).
This is true also for GLMCV objects.

* Use tqdm (https://github.com/tqdm/tqdm/) if available. If it is not available, then we use the
  non-interactive version instead.
* Use tqdm.auto to easily switch automatically from command line to notebook.
* Add _verbose_iterable method which converts a list into a tqdm iterator.
* Add _tqdm_log method to pretty print information while inside a tqdm loop.
* Update What's New section.
jasmainak pushed a commit that referenced this issue Jul 22, 2020
GLM objects can show the current training progress statistics (remaining time, iterations/sec, etc.).
This is true also for GLMCV objects.

* Use tqdm (https://github.com/tqdm/tqdm/) if available. If it is not available, then we use the
  non-interactive version instead.
* Use tqdm.auto to easily switch automatically from command line to notebook.
* Add _verbose_iterable method which converts a list into a tqdm iterator.
* Add _tqdm_log method to pretty print information while inside a tqdm loop.
* Update What's New section.
@geektoni
Copy link
Contributor Author

Add tqdm support in #380.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants