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

510 progress bar #559

Closed
wants to merge 3 commits into from
Closed

Conversation

Dref360
Copy link
Contributor

@Dref360 Dref360 commented Aug 14, 2020

Summary
Add a progress bar to GridSearch to inform the user on the progress.

Fixes #510

For ExponentiatedGradient, we could do the same, but the progress bar would not be complete at the end. Should I add it there as well?

Copy link
Member

@riedgar-ms riedgar-ms left a comment

Choose a reason for hiding this comment

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

Per the discussion on #517 , could you make the tqdm dependency soft?

Fred Branchaud added 3 commits August 14, 2020 13:39
Signed-off-by: Fred Branchaud <frederic.branchaud-charron@elementai.com>
Signed-off-by: Fred Branchaud <frederic.branchaud-charron@elementai.com>
Signed-off-by: Fred Branchaud <frederic.branchaud-charron@elementai.com>
try:
from tqdm import tqdm
except ImportError:
raise RuntimeError(_TQDM_IMPORT_ERROR_MESSAGE)
Copy link
Member

Choose a reason for hiding this comment

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

Rather than raise an exception, since verbose=True is the default, I think it would be kinder to log a warning and behave as if verbose was false.

Tagging @adrinjalali , who first raised a caution around tqdm

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I set verbose default to False so that the user ia not forced to install tqdm.

@romanlutz
Copy link
Member

Per the discussion on #517 , could you make the tqdm dependency soft?

Didn't that discussion #517 conclude we don't want this dependency at all?

Adding @adrinjalali as well.

@adrinjalali
Copy link
Member

Yes, the conclusion was to use logger instead.

@Dref360
Copy link
Contributor Author

Dref360 commented Aug 17, 2020

Ah! I didn't see that PR, apologies.

I'll close this one then.

@Dref360 Dref360 closed this Aug 17, 2020
@romanlutz
Copy link
Member

@Dref360 no worries! If you're up for trying it that way (using logging) please let us know :-)

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

Successfully merging this pull request may close these issues.

Show progress during unfairness mitigation
4 participants