文件历史

提交图

95 次代码提交

作者 SHA1 备注 提交日期
Ulyana 980c6ddc07 Extend package support Python 10-14 + relax dependencies (#1276) 2026-01-07 14:11:40 -08:00
Jonas Mueller 0167accd0a license (#1263)
change license to Apache 2.0

---------

Co-authored-by: Anish Athalye <me@anishathalye.com>
2025-12-15 16:56:30 -08:00
Gaétan Lepage bed10f5bdf Fix numpy2 compatibility (#1224) 2025-01-10 20:06:05 -08:00
Martin Zornoza Auñon c915f77642 Improve performance of clip_values utility function(#1104) 2024-07-02 15:08:20 +00:00
Martin Zornoza Auñon e67c4aeedd Optimize internal clip_noise_rates and remove_noise_from_class functions (#1105) 2024-07-02 15:06:02 +00:00
Elías Snorrason 4388992862 Remove unnecessary warnings during KNN graph correction (#1129) 2024-05-24 14:34:20 +00:00
Elías Snorrason 25b7aaba7e Improve KNN Graph Construction for Handling Exact Duplicates and Numerical Precision (#1119)
Co-authored-by: Jonas Mueller <1390638+jwmueller@users.noreply.github.com>
2024-05-24 14:04:53 +00:00
Martin Zornoza Auñon c13f32a2a6 Optimize value_counts function for performance improvement with missing classes (#1073)
Co-authored-by: Elías Snorrason <eliassno@gmail.com>
2024-05-21 21:30:33 +00:00
Martin Zornoza Auñon ca3892994e Optimize multiannotator.py for performance (#1077)
Co-authored-by: Hui Wen <45724323+huiwengoh@users.noreply.github.com>
2024-05-15 00:06:02 -04:00
Elías Snorrason 71ba4b3209 Add a knn module (#1117)
Co-authored-by: Jonas Mueller <1390638+jwmueller@users.noreply.github.com>
2024-05-14 13:59:15 -04:00
Jonas Mueller 3c6c9a107a avoid sensitive divisions without ensuring denominator is not small (#1114) 2024-05-03 22:08:26 +00:00
Martin Zornoza Auñon f493b9953a Optimize internal multilabel score (#1106) 2024-04-23 16:08:21 +00:00
Martin Zornoza Auñon 09fed320f1 Optimize onehot2int for performance (#1107) 2024-04-23 14:03:55 +00:00
Elías Snorrason e0b7615c11 Update typing import in outlier.py (#1086) 2024-04-06 04:10:12 +00:00
Martin Zornoza Auñon 76dfdd23fa Fix flaky test of outlier scores for identical examples (#1079) 2024-04-06 04:06:02 +00:00
Elías Snorrason 2f2bc1fe18 Refine Scoring and Enhance Stability for Datasets with Identical Examples (#1056)
Enhance numerical stability and scoring accuracy for datasets with identical features

- Adjust minimum median values to 100x machine epsilon to prevent unstable operations.
- Implement specific scoring logic for outlier and near-duplicate issues in datasets with identical features, ensuring correct scores are assigned in such edge cases.
- Introduce unit tests to validate the expected behavior for datasets comprising entirely identical examples. Check an additional case with an extra unique example.

Related to issue #1055.
2024-03-19 12:41:49 +00:00
Aditya Thyagarajan 22dd845c48 add bbox area computation (#968) 2024-01-25 20:21:06 -08:00
Ganesh Tata 51de77768d Multilabel Issue Manager for Classification (#929)
* Add Multilabel label issue manager

* Add task validation in Datalab constructor

* Add type checks for labels in issue managers

* Refactor code to use Datalab for finding label issues in multi-label classification tutorial

---------

Co-authored-by: Elías Snorrason <eliassno@gmail.com>
2024-01-24 00:14:04 +00:00
Elías Snorrason 15bec56103 Rescale ood scores in outlier package (#953)
Co-authored-by: Ulyana <ulya.tkach@gmail.com>
2024-01-17 17:42:23 +00:00
Elías Snorrason 0a03742f52 Refactor batching logic in cleanlab.segmentation.filter.find_label_issues (#918) 2024-01-08 11:30:25 +00:00
Gibson Han e90dea60c7 702 - Shorten Refs of classes and functions (#831)
Co-authored-by: Elías Snorrason <eliassno@gmail.com>
Co-authored-by: tataganesh <tataganesh95@gmail.com>
2023-12-07 13:37:16 +00:00
Yiran Shi 902fb487c9 Functions to explore object detection dataset (#840)
Add dataset summary functions+plots to object detection.
---------

Co-authored-by: Jonas Mueller <1390638+jwmueller@users.noreply.github.com>
Co-authored-by: Ulyana <ulyana@cleanlab.ai>
2023-10-16 13:17:05 -07:00
Elías Snorrason 4ce9f771c8 Unify softmax implementations (#826)
* unify softmax implementations

* Refine mypy type hint in _set_fine_search_range function

- Update type hint for `min_entropy_ind` from built-in `int` to `np.intp`.
  - This refinement addresses a type compatibility warning.
  - `np.intp` is the integer type used by numpy for indexing and can differ in size from the built-in Python `int` depending on the platform (32-bit vs 64-bit).
  - Mypy highlighted this type hint discrepancy.

* add unit tests for softmax

---------

Co-authored-by: Hui Wen <45724323+huiwengoh@users.noreply.github.com>
2023-08-30 00:22:05 +00:00
Aditya Thyagarajan a497b38c28 change thresholding class-wise for ObjectLab (#804)
* Adding support for per-class thresholding for ObjectLab
2023-08-26 05:06:00 +05:30
Hui Wen 0adce8290f 50x speedup for multiannotator module (#821) 2023-08-16 18:39:06 -07:00
Hui Wen b9102017bd Add more descriptive error messages for multiannotator modules (#784) 2023-07-27 14:25:19 -04:00
Aditya Thyagarajan cb51891b06 lowering swap score for multiple labels associated with a box (#750)
* Lower swap scores for overlapping annotations + Optional arguments correction

---------

Co-authored-by: Jonas Mueller <1390638+jwmueller@users.noreply.github.com>
Co-authored-by: Ulyana <ulya.tkach@gmail.com>
2023-07-12 20:29:20 +05:30
Yiran Shi cb4c05cbff Add support for high dimensional arrays in CleanLearning(#749)
Co-authored-by: Jonas Mueller <1390638+jwmueller@users.noreply.github.com>
Co-authored-by: Hui Wen <45724323+huiwengoh@users.noreply.github.com>
2023-06-27 00:12:52 -04:00
Mayank Kumar 9f302200a4 Regression label quality scores (#572)
Co-authored-by: Elías Snorrason <eliassno@gmail.com>
Co-authored-by: Jonas Mueller <1390638+jwmueller@users.noreply.github.com>
Co-authored-by: huiwengoh <45724323+huiwengoh@users.noreply.github.com>
2023-06-23 17:51:46 -07:00
Vedang Lad 35606fc401 label error detection in semantic segmentation datasets (#677)
Co-authored-by: Ulyana <ulyana@cleanlab.ai>
Co-authored-by: Jonas Mueller <1390638+jwmueller@users.noreply.github.com>
2023-06-23 00:32:08 -07:00
Ulyana da65a9727f identifying label errors in Object Detection data (#676)
Co-authored-by: Aditya Thyagarajan <aditya1593@icloud.com>
Co-authored-by: Jonas Mueller <1390638+jwmueller@users.noreply.github.com>
Co-authored-by: Hui Wen <45724323+huiwengoh@users.noreply.github.com>
2023-06-07 01:12:46 -07:00
DerWeh 114201bf76 ENH: make clipping unnecessary for entropy (#703)
Co-authored-by: Hui Wen <45724323+huiwengoh@users.noreply.github.com>
2023-05-25 00:49:30 -04:00
DerWeh e33b757fa0 MAINT: standardize documentation and simplify code for outlier (#689) 2023-05-01 19:16:19 -04:00
Elías Snorrason 2d00c91f40 Update numpy.typing import and annotations (#688)
* refactor: ♻️ move numpy.typing under TYPE_CHECKING and add future annotations
2023-05-01 16:58:48 +00:00
Ulyana d45a508ed6 Update softmax to be more numerically stable (#667) 2023-04-14 22:23:40 -05:00
Aditya Thyagarajan f8c1866c58 move methods to multilabel_classification module (#657)
adds new dataset summarization methods for multilabel settings

---------

Co-authored-by: Jonas Mueller <1390638+jwmueller@users.noreply.github.com>
Co-authored-by: Elías Snorrason <eliassno@gmail.com>
2023-04-13 21:50:11 -07:00
Elías Snorrason 6d67175e2a Extract function for computating ood scores from distances (#664)
* extract distance-to-score computation to separate function
* move function to a new internal.outlier module
2023-04-07 18:33:45 +00:00
Hui Wen fa1db6e1d5 Bug fixes + improvements to multiannotator module (#654)
Co-authored-by: Jonas Mueller <1390638+jwmueller@users.noreply.github.com>
2023-03-20 23:36:41 -07:00
Ulyana 70a2ed2fa2 Add clipping of small probabilities to address issue #639 (#647)
Co-authored-by: Jonas Mueller <1390638+jwmueller@users.noreply.github.com>
2023-03-12 20:51:03 -07:00
Ulyana c191d8781d Fix format compatibility with latest black==23. release (#620) 2023-02-07 10:01:45 -08:00
unna97 503a57adaf Adding type hints for mypy strict compatibility (#585)
* Handling missing type & docs in cleanlab/token_classification_utils.py 🏷️
    - Added typehints for the cleanlabs/token_classification_utils.py file for mypy strict mode
    - Fixed corresponding docstrings refers #587

* Handling missing type & docs in cleanlab/multilabel_classification.py 🏷️
 - Fixing all errors for mypy strict for the file

* docs(internal): fix "number of new classes" variable in docstring

Co-authored-by: Elías Snorrason <eliassno@gmail.com>
2023-01-10 13:46:16 +00:00
Aditya Thyagarajan 7b589f6d63 updating copyright year to include 2023 (#594) 2023-01-06 21:25:57 -08:00
Elías Snorrason 27340b0d5f fix(multi-label docstring example): 📝 make score array two-dimensional (#573) 2022-12-23 15:59:23 -08:00
Hui Wen f61469420b Multiannotator Active Learning Support (#538)
Co-authored-by: Jonas Mueller <1390638+jwmueller@users.noreply.github.com>
2022-12-21 18:31:24 -08:00
Elías Snorrason 0a3344726f chore: 🔥 remove .pylintrc (#564)
flake8 should be used instead
2022-12-13 00:58:22 -08:00
Elías Snorrason 1e8f9ab8b2 Docs: remove double slash in math-mode in EMA docstring (#563)
Fixes #556
2022-12-12 09:07:40 -08:00
Jonas Mueller 17a82c32fc Public multilabel quality scores method + softmin aggregation + more tests (#542)
Co-authored-by: Elías Snorrason <eliassno@gmail.com>
2022-11-23 18:34:43 -08:00
Elías Snorrason 7139a8fd99 Refactor MultilabelScorer helper methods and tests (#540)
Co-authored-by: Jonas Mueller <1390638+jwmueller@users.noreply.github.com>
2022-11-20 15:43:23 -08:00
Elías Snorrason 4d0ad6ed04 Fix multilabel_py dimensionality (#535)
* Go from a (2**K,) vector to a (K, 2) matrix of prior probabilities.
2022-11-14 15:19:17 +00:00
Elías Snorrason 25025d9275 Validate forgetting factor in EMA (#527)
- Added runtime check that `0 <= alpha <= 1` to ensure EMA uses proportional weighting.
- Moved all EMA tests to separate class.
2022-11-07 15:56:33 +00:00