Skip to content

fix: pass confident_joint to _get_num_examples in rank_classes_by_label_quality and health_summary - #1331

Open
mayuriphad wants to merge 1 commit into
cleanlab:masterfrom
mayuriphad:fix/confident-joint-num-examples
Open

fix: pass confident_joint to _get_num_examples in rank_classes_by_label_quality and health_summary#1331
mayuriphad wants to merge 1 commit into
cleanlab:masterfrom
mayuriphad:fix/confident-joint-num-examples

Conversation

@mayuriphad

Copy link
Copy Markdown

Summary

Fixes #1329

When calling rank_classes_by_label_quality(confident_joint=...) or health_summary(confident_joint=...) without passing labels, a ValueError was raised because _get_num_examples was called with only labels=labels and confident_joint remained unset (None).

Changes

  • Forward confident_joint=confident_joint to _get_num_examples in both rank_classes_by_label_quality and health_summary within cleanlab/dataset.py.
  • Added unit regression tests in tests/test_dataset.py verifying that both functions execute without errors when passing confident_joint without labels.

Copilot AI lite review requested due to automatic review settings August 18, 2026 14:07

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@CLAassistant

CLAassistant commented Aug 18, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@mayuriphad

Copy link
Copy Markdown
Author

I have read the CLA Document and I hereby sign the CLA

@mayuriphad

Copy link
Copy Markdown
Author

recheck

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.

ValueError when passing confident_joint to rank_classes_by_label_quality

3 participants