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

added wandb logger and extended when to log #379

Merged
merged 5 commits into from
Feb 18, 2024

Conversation

claudius-kienle
Copy link
Contributor

I added a wandb logger adapter and also added to new parameters to customize when to log.

This will close #362

Copy link
Owner

@takuseno takuseno left a comment

Choose a reason for hiding this comment

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

@claudius-kienle Thank you for your contribution! This is awesome! I have some minor comments that I'd like you to address before we merge this. Please take a look. Thanks again!

d3rlpy/logging/wandb_adapter.py Show resolved Hide resolved
d3rlpy/logging/wandb_adapter.py Outdated Show resolved Hide resolved
d3rlpy/logging/wandb_adapter.py Show resolved Hide resolved
d3rlpy/algos/qlearning/base.py Outdated Show resolved Hide resolved
@claudius-kienle
Copy link
Contributor Author

@takuseno Thank you for the review. All your comments should now be included.

Copy link
Owner

@takuseno takuseno left a comment

Choose a reason for hiding this comment

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

Thanks for the change! It looks good to me. I have one minor request that I want you to address!

@@ -47,3 +47,8 @@ class ActionSpace(Enum):
class PositionEncodingType(Enum):
SIMPLE = "simple"
GLOBAL = "global"


class LoggingStrategyEnum(Enum):
Copy link
Owner

Choose a reason for hiding this comment

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

Could you rename this to LoggingStrategy?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Of course. I just changed it.

Copy link

codecov bot commented Feb 18, 2024

Codecov Report

Attention: 30 lines in your changes are missing coverage. Please review.

Comparison is base (06dd7a7) 91.96% compared to head (74ffe20) 91.61%.

Files Patch % Lines
d3rlpy/logging/wandb_adapter.py 0.00% 29 Missing ⚠️
d3rlpy/algos/qlearning/base.py 80.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #379      +/-   ##
==========================================
- Coverage   91.96%   91.61%   -0.36%     
==========================================
  Files         113      114       +1     
  Lines        8012     8047      +35     
==========================================
+ Hits         7368     7372       +4     
- Misses        644      675      +31     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Owner

@takuseno takuseno left a comment

Choose a reason for hiding this comment

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

Thanks! LGTM. I see formattting errors, but I'll follow up.

@takuseno takuseno merged commit 3d46d71 into takuseno:master Feb 18, 2024
3 of 6 checks passed
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.

[REQUEST] Support WandB logging
2 participants