Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
huiwengoh committed Feb 27, 2024
1 parent 99268ce commit 7bce0ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cleanlab/regression/learn.py
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ def find_label_issues(
residual_adjusted = abs(residual / (uncertainty + TINY_VALUE))

# adjust lqs by the median (for more human-readable scores)
residual_median = max(np.median(residual_adjusted), TINY_VALUE)
residual_median = max(np.median(residual_adjusted), TINY_VALUE) # take the max to prevent median = 0
label_quality_scores = np.exp(-residual_adjusted / residual_median)

label_issues_mask = np.zeros(len(y), dtype=bool)
Expand Down

0 comments on commit 7bce0ec

Please sign in to comment.