Skip to content
This repository has been archived by the owner on Dec 16, 2022. It is now read-only.

Make tqdm description ignore metrics starting with _ #1425

Merged
merged 4 commits into from Jun 26, 2018

Conversation

nelson-liu
Copy link
Contributor

tqdm currently doesn't handle long descriptions very gracefully (image below)

screen shot 2018-06-25 at 5 32 34 pm

This PR makes the tqdm description ignore metrics with a name that begins with _.

@nelson-liu nelson-liu requested a review from joelgrus June 26, 2018 00:34
Copy link
Contributor

@DeNeutoy DeNeutoy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add a note to the docstring of Model that this is the case - or even add a logging step to Trainer which informs the user that the metrics will be ignored (but still computed) the first time they are encountered. It's not exactly obvious that this would be the cause if you didn't know metrics with pre-pended underscores aren't logged.

@nelson-liu nelson-liu merged commit 36d91fd into allenai:master Jun 26, 2018
nelson-liu added a commit to nelson-liu/allennlp that referenced this pull request Jun 26, 2018
nelson-liu added a commit that referenced this pull request Jun 26, 2018
gabrielStanovsky pushed a commit to gabrielStanovsky/allennlp that referenced this pull request Sep 7, 2018
* Make tqdm description ignore metrics starting with _

* Add notes about this functionality

* fix typo and lint

* Lint , vol II
gabrielStanovsky pushed a commit to gabrielStanovsky/allennlp that referenced this pull request Sep 7, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants