文件历史

28 次代码提交

作者 SHA1 备注 提交日期
Ganesh Tata 3fb20e9596 CI: Run slowest tests at the end and fail early (#900) 2023-12-14 17:59:28 +00:00
Jonas Mueller faac915740 mv example_models -> experimental 2022-04-07 01:25:03 -07:00
Jonas Mueller d3eb08e75a added LearningWithNoisyLabels.find_label_issues instance method (#157)
* added LearningWithNoisyLabels.find_label_issues instance method

* LNL.find_label_issues no longer memoizes

* verbose unit test coverage

* Fixed all issues in PR. Fixed confident joint usage in LNL.find_label_issues. Fixed other minor bugs. Added tests

Co-authored-by: Curtis G. Northcutt <curtis.northcutt@gmail.com>
Co-authored-by: Anish Athalye <me@anishathalye.com>
2022-04-06 12:24:27 -04:00
Anish Athalye 5e50623032 Remove unnecessary version warning (#162)
This was used to skip e.g. importing PyTorch on some tests. However,
PyTorch supports all versions of Python that Cleanlab supports, so
there's no need to issue this warning. Furthermore, having this kind of
code in our codebase increases maintenance burden and contributes to
user frustration. If we mark a version of some library as unsupported,
but the library adds support for it in the future, there's no way users
can use the two packages together without waiting for us to push a new
version of cleanlab that marks that it's compatible and then switching
to the new version, which may be painful for unrelated reasons. It's
better to not have these kinds of checks; if users are using a version
of Python that's unsupported by some other library that they want to
use, that's not our problem, and they'll have issues installing or
importing it and figure it out themselves.

This patch also removes mentions of Python 2.
2022-04-05 18:59:58 -04:00
Anish Athalye 51a4c921b1 Remove unnecessary print statement (#145)
This was accidentally included in
0a6b55b323.
2022-03-28 15:40:11 -07:00
Jonas Mueller dac3d12717 merge np.long->int32 update 2022-03-28 13:17:10 -04:00
Jonas Mueller 7b2340b638 Utilites -> internal submodule refactor (#141)
* utilities -> internals

* docbuilding instructions improvement

* fixup formatting of contributing.md

* change contributor guidelines language to be optional

* line formatting
2022-03-28 09:53:10 -07:00
Anish Athalye 0a6b55b323 Fix NumPy deprecation warning
`np.long` was deprecated in NumPy 1.20, and this was making the test
output noisy with deprecation warnings. This patch replaces the type
with `np.int32` (the labels are 0--9).
2022-03-28 09:45:06 -04:00
Anish Athalye 11dff1faf4 Standardize code style to Black (#107)
* Set up Black as the code style

* Migrate code style to Black
2022-03-16 21:27:36 -04:00
Curtis G. Northcutt 8f9f3f5380 Major API change. Introducing Cleanlab 2.0 (#128)
* Refactor modules pruning to filter and latent_estimation to count

* Remove polyplex (research) algorithms from cleanlab

* Create new module rank and move scoring functions to rank.

* Rename test to match new module names

* Fixed error in normalized margin. added ranking for arbitrary psx and labels.

* Remove unused tests and methods. add multi-label support for baseline.

* Move baseline methods to filter and delete baseline module.

* change filter.get_noise_indices to filter.find_label_issues

* Rename baseline methods. fill out docstrings.

* Only require 1 example to be left in each class after removing errors. (instead of 5)

* Remove K as a parameter to count.compute_confident_joint

* Add C_argmax and C_ij methods from CL paper to find_label_issues

* Add warnings for new prune methods and frac_noise. Fix tests.

* Add baseline tests to test_rank_filter and delete baseline test

* Remove inverse_noise_matrix parameter in classification call to find_label_issues

* add todo to update docstring with new ranking functions

* 100% tests pass. add multi-label support for prune_method

* Major NOT-backwards-compatible name changes to most components

* More Major NOT-backwards-compatible name changes

* fixed s -> label mistakes

* Several nomenclature updates from PR feedback. models renamed to example models.

* Remove python2 support across all modules.

* major api changes. psx -> pred_probs. prob_given_label -> self_confidence. testing added.

* enable python version 3.9 for pytorch model.

* ran spellcheck

* ran grammar check

* Update count.py

* Update filter.py

* Update setup.py and ci.yml to no longer support Python 2 and py3.4/5

* Increase test coverage and documentation of rank module methods.

* create utils submodule and move util and latent_algebra

* Rename y everywhere to true_labels, and p(true_label=..)

* Enforce positional arguments in methods. Fully remove py2 support.
2022-03-16 06:52:03 -04:00
Curtis G. Northcutt 0420eaa4a4 Update targets to type long for pytorch compatibility on windows. 2021-04-08 22:44:27 -04:00
Curtis G. Northcutt e81cabef1e yann lecunn blocked auto-download of mnist. use sklearn digits instead 2021-04-08 22:13:04 -04:00
Curtis Northcutt b45ebd1688 No longer support python2 and pytorch compatibility 2020-02-25 22:09:45 -05:00
cgnorthcutt bed2fa228c Remove ipynb artificats like # In[0] 2019-08-19 16:59:09 -04:00
cgnorthcutt d61d2eb55b Modified pytorch testing to appease py27 issues. 2019-02-16 16:39:06 -05:00
Curtis Northcutt c46bae5b61 100% codecov with pytest. 2018-12-08 03:09:42 -05:00
Curtis Northcutt 15176b9b90 100% codecov with pytest (or close enough). 2018-12-08 02:57:29 -05:00
Curtis Northcutt 6b014c9576 Increased testing coverage. 2018-12-08 01:42:00 -05:00
Curtis Northcutt a40007798c Fixed error due to commented if statement. 2018-12-08 00:55:28 -05:00
Curtis Northcutt 9f90746d82 Changed main test to instead test all loaders. 2018-12-08 00:51:24 -05:00
Curtis Northcutt 1e563004c9 fasttext is stochastic (not seeded results). Adjusted testing accordingly. 2018-12-03 13:16:43 -08:00
Curtis Northcutt fa125395ac typo fix, == should have been > 2018-12-03 02:01:26 -08:00
Curtis Northcutt 9fc14b72f1 Now uses clealab.util.VersionWarning class 2018-12-03 00:22:15 -08:00
Curtis Northcutt 3a2ca11242 Added warning for pyTorch with invalid python version 2018-12-02 22:25:52 -08:00
Curtis Northcutt ad4767950d Added missing package import 2018-11-26 11:35:45 -05:00
Curtis Northcutt c68f33e226 Fixed python version check 2018-11-26 11:31:37 -05:00
Curtis Northcutt d0b6b3a7ca Do not test pytorch unless compatible python version 2018-11-25 22:33:52 -05:00
Curtis Northcutt 58d5033b08 Test using cleanlab with a PyTorch CNN model 2018-11-25 22:20:14 -05:00