Skip to content

[WIP] Use rich instead of tqdm#104

Open
senwu wants to merge 1 commit intomainfrom
rich
Open

[WIP] Use rich instead of tqdm#104
senwu wants to merge 1 commit intomainfrom
rich

Conversation

@senwu
Copy link
Owner

@senwu senwu commented Sep 18, 2021

Description of the problems or issues

Rich has a really nice visualization for logging and many advanced features. We want to use rich for logging and training process monitoring.

Description of the proposed changes

Switch tqdm to rich.

Test plan

Pass all existing tests.

Checklist

  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.
  • I have updated the CHANGELOG.rst accordingly.

@senwu senwu added enhancement New feature or request help wanted Extra attention is needed labels Sep 18, 2021
@codecov
Copy link

codecov bot commented Sep 18, 2021

Codecov Report

Merging #104 (c7fafe9) into master (4a5813e) will increase coverage by 0.10%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #104      +/-   ##
==========================================
+ Coverage   85.24%   85.34%   +0.10%     
==========================================
  Files          40       40              
  Lines        1958     1959       +1     
  Branches      418      417       -1     
==========================================
+ Hits         1669     1672       +3     
+ Misses        173      172       -1     
+ Partials      116      115       -1     
Flag Coverage Δ
unittests 85.34% <100.00%> (+0.10%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
setup.py 0.00% <ø> (ø)
src/emmental/meta.py 75.00% <100.00%> (+0.24%) ⬆️
src/emmental/model.py 83.18% <100.00%> (+0.60%) ⬆️

Copy link
Collaborator

@lorr1 lorr1 left a comment

Choose a reason for hiding this comment

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

Looks good. If you're really ambitious, you might be able to make an issue on rich's github to see if they have any suggestions for how to get rich in the trainer you have.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request help wanted Extra attention is needed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants