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

Make labels optional in Datalab #730

Merged
merged 4 commits into from
Jun 5, 2023
Merged

Conversation

elisno
Copy link
Member

@elisno elisno commented May 26, 2023

In this PR, we make the label_name argument optional in the constructor of Datalab.

Some label logic (that used to reside in the Data class) has been extracted to a new Label class (working title). I didn't bother to move it to a separate module (as it's only used by the Data class for now).

A new test class has been added, where we start testing Datalab instances with no labels.

@elisno elisno requested a review from sanjanag May 26, 2023 21:07
@codecov
Copy link

codecov bot commented May 30, 2023

Codecov Report

Merging #730 (fd32d68) into master (7ed00cf) will decrease coverage by 0.19%.
The diff coverage is 89.33%.

@@            Coverage Diff             @@
##           master     #730      +/-   ##
==========================================
- Coverage   96.18%   96.00%   -0.19%     
==========================================
  Files          46       46              
  Lines        3645     3702      +57     
  Branches      650      655       +5     
==========================================
+ Hits         3506     3554      +48     
- Misses         73       81       +8     
- Partials       66       67       +1     
Impacted Files Coverage Δ
cleanlab/datalab/issue_manager/label.py 98.30% <ø> (ø)
cleanlab/datalab/data.py 90.75% <82.60%> (-5.80%) ⬇️
cleanlab/datalab/data_issues.py 98.63% <100.00%> (+0.14%) ⬆️
cleanlab/datalab/datalab.py 100.00% <100.00%> (ø)
cleanlab/datalab/issue_finder.py 96.84% <100.00%> (+0.41%) ⬆️
cleanlab/datalab/issue_manager/outlier.py 98.34% <100.00%> (ø)

... and 1 file with indirect coverage changes

@elisno elisno linked an issue Jun 1, 2023 that may be closed by this pull request
@elisno elisno merged commit 43e24ba into cleanlab:master Jun 5, 2023
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.

Remove requirement for labels in Datalab
2 participants