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

Fix error bucket docs to correctly reflect indexes #1520

Merged
merged 2 commits into from
Nov 23, 2019

Conversation

vincentschen
Copy link
Member

Description of proposed changes

Documentation is incorrect for the get_label_buckets utility

Fixes # (issue)
Spectrum issue specifying incorrect documentation: https://spectrum.chat/snorkel/tutorials/understanding-buckets-key-in-error-analysis-py~1b4f478f-78ab-44f4-9bfe-7c14532e88dd

Test plan

  • No functional chnages

Need help on these? Just ask!

  • I have read the CONTRIBUTING document.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • I have run tox -e complex and/or tox -e spark if appropriate.
  • All new and existing tests passed.

@vincentschen vincentschen requested a review from a team November 23, 2019 23:07
predicted label i and true label j.
true label i and predicted label j.

More generally, the returned indexes (i,j,k,...) match the order of labels passed
Copy link
Member

Choose a reason for hiding this comment

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

Confusing to use i and j here with a different meaning than i and j just two lines above. How about "The returned indices within each bucket refer to the order of the labels that were passed in."

Copy link
Member Author

Choose a reason for hiding this comment

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

Agreed, this is clearer!

Copy link
Member

@bhancock8 bhancock8 left a comment

Choose a reason for hiding this comment

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

🎸

@codecov
Copy link

codecov bot commented Nov 23, 2019

Codecov Report

Merging #1520 into master will not change coverage.
The diff coverage is n/a.

@@          Coverage Diff           @@
##           master   #1520   +/-   ##
======================================
  Coverage    97.6%   97.6%           
======================================
  Files          55      55           
  Lines        2047    2047           
  Branches      337     337           
======================================
  Hits         1998    1998           
  Misses         22      22           
  Partials       27      27
Impacted Files Coverage Δ
snorkel/analysis/error_analysis.py 100% <ø> (ø) ⬆️

@vincentschen vincentschen merged commit e316d57 into master Nov 23, 2019
@vincentschen vincentschen deleted the update-error-bucket-docs branch November 23, 2019 23:24
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.

2 participants