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

Improve error clarity in TensorboardMetric #2456

Closed
wants to merge 1 commit into from

Conversation

mpolson64
Copy link
Contributor

Summary:
Add specific error messages to tb fetching for when data is missing.

Previously this would error out in a pandas operation which was confusing to many users. Now, we check to see whether the issue occurred because the tag was not present on the multiplexer at all (common) or because the tag was present but not data was found associated ie an empty tensor was attached (uncommon but possible).

Differential Revision: D57342319

Summary:
Add specific error messages to tb fetching for when data is missing.

Previously this would error out in a pandas operation which was confusing to many users. Now, we check to see whether the issue occurred because the tag was not present on the multiplexer at all (common) or because the tag was present but not data was found associated ie an empty tensor was attached (uncommon but possible).

Differential Revision: D57342319
@facebook-github-bot facebook-github-bot added the CLA Signed Do not delete this pull request or issue due to inactivity. label May 14, 2024
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D57342319

@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 50.00000% with 3 lines in your changes are missing coverage. Please review.

Project coverage is 95.31%. Comparing base (5216b09) to head (88d3e83).
Report is 2 commits behind head on main.

Files Patch % Lines
ax/metrics/tensorboard.py 50.00% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2456      +/-   ##
==========================================
- Coverage   95.32%   95.31%   -0.01%     
==========================================
  Files         496      496              
  Lines       48323    48328       +5     
==========================================
+ Hits        46062    46064       +2     
- Misses       2261     2264       +3     

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

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in e6ab78c.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed Do not delete this pull request or issue due to inactivity. fb-exported Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants