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 report output formatting #687

Merged
merged 4 commits into from
Apr 28, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix typo
  • Loading branch information
elisno committed Apr 28, 2023
commit 78a1307402d177b1c14a8a72bb48e31cd3625072
2 changes: 1 addition & 1 deletion cleanlab/datalab/issue_manager/issue_manager.py
Original file line number Diff line number Diff line change
@@ -287,7 +287,7 @@ def report(
report_str += "About this issue:\n\t" + description + "\n\n"
report_str += (
f"Number of examples with this issue: {issues[f'is_{cls.issue_name}_issue'].sum()}\n"
f"Overall dataset quality in terms of this issue: : {score:.4f}\n\n"
f"Overall dataset quality in terms of this issue: {score:.4f}\n\n"
)

info_to_print: Set[str] = set()
4 changes: 2 additions & 2 deletions docs/source/cleanlab/datalab/guide/custom_issue_manager.rst
Original file line number Diff line number Diff line change
@@ -199,7 +199,7 @@ The report will look something like this:
------------------------------------------- basic issues -------------------------------------------

Number of examples with this issue: 2
Overall dataset quality in terms of this issue: : 0.4778
Overall dataset quality in terms of this issue: 0.4778

Examples representing most severe instances of this issue:
is_basic_issue basic_score
@@ -216,7 +216,7 @@ The report will look something like this:
Intermediate issues are a bit more involved than basic issues.

Number of examples with this issue: 0
Overall dataset quality in terms of this issue: : 0.2865
Overall dataset quality in terms of this issue: 0.2865

Examples representing most severe instances of this issue:
is_intermediate_issue intermediate_score kernel