文件历史

提交图

633 次代码提交

作者 SHA1 备注 提交日期
Curtis G. Northcutt 670d9d680e use shape[1] instead of unique everywhere. replace K with num_classes 2022-06-19 15:56:13 -07:00
Curtis G. Northcutt fc0db77892 remove unused code and unused param in docstring 2022-06-19 15:46:52 -07:00
Curtis G. Northcutt 215945f690 Remove redundant code. replace unique with pred_prob shape 1 2022-06-19 15:45:29 -07:00
Jonas Mueller 1f1d02435d overlapping_desc (#277) 2022-06-14 11:29:39 -07:00
Jonas Mueller 7d498a8c39 black formatting (#273) 2022-06-10 10:43:27 -07:00
Jonas Mueller 673c117ba7 code formatting (#271)
* code formatting

* codecov ignore experimental/*
2022-06-10 10:37:22 -07:00
Jonas Mueller d7e9e4b073 docstring clarifications (#270) 2022-06-10 10:36:23 -07:00
Johnson Kuan d902197191 Add KNN distance OOD scoring function and unit tests (#268)
* Add KNN distance OOD scoring function and unit tests

* Update KNN distance OOD scoring function

* Change query_features to features in unit tests for KNN distance OOD scoring function

* Update KNN distance OOD scoring function

* Update tests for KNN distance OOD scoring function to use auto for algo

* Allow k=None for KNN Distance OOD score
2022-06-01 17:14:32 -07:00
MattiaSangermano e1ba5ae25f Developed class that allow the use of cleanlab with tensorflow and huggingface models (#247)
* added class to use cleanlab with tensorflow and huggingface models

* - Documentation refactoring
- predict and predict_proba functions work on new test data too
2022-06-01 17:02:29 -07:00
Johnson Kuan 04877081f3 Add Negative Log Loss Weighting Scheme for Ensemble Label Quality Score (#267)
* Add log_loss_search weighting method for ensemble label quality scoring function

* Update log_loss_search weighting method

* Add test for log_loss_search method

* Add parameter to Ensemble label quality scoring function for t values in log_loss_search method

* Update ensemble label quality scoring function docstring

* Update ensemble label quality scoring function comments

* Update docstring in ensemble label quality scoring function

* Update docstring in ensemble label quality scoring function

* Update docstring in ensemble label quality scoring function

* Modify verbose printout for log_loss_search

* Add clipping of pred_prob when calculating weights for log_loss_search

* Add clipping of pred_prob and renormalization when calculating weights for log_loss_search

* Add comments for log_loss_search weighting scheme
2022-05-26 16:55:04 -07:00
Curtis G. Northcutt 7aa34a33ba Fix bug. get thresholds broken for multi_label 2022-05-20 21:55:32 -04:00
Johnson Kuan a1f8be034b Allow users to pass custom weights for ensemble label quality scoring (#255)
* Allow user to pass custom_weights to ensemble scoring method

* Add tests for ensemble scoring with custom_weights

* Add check to make sure length of custom_weights matches len(pred_probs_list)

* Update tests for usage of custom_weights in ensemble scoring
2022-05-10 18:00:28 -07:00
Jonas Mueller 42971ac08b nocover verbose prints 2022-05-04 20:02:41 -07:00
Jonas Mueller 8593018b46 nocover final else+print statement 2022-05-04 19:41:37 -07:00
Jonas Mueller 46b8ca310f remove weight from clf_kwargs 2022-05-04 03:24:58 -07:00
Jonas Mueller 4b1ebbc435 dict copy to avoid update 2022-05-04 03:09:13 -07:00
Jonas Mueller d4873631e4 _default -> _auto 2022-05-04 02:24:31 -07:00
Jonas Mueller 7ec5c9190a 2nd bugfix: sample_weight_default 2022-05-04 02:20:56 -07:00
Jonas Mueller c795a36b8b bugfix: sample_weight variable and arg name 2022-05-04 02:05:32 -07:00
Jonas Mueller fc033ddc80 move back cannot-utilize weights print 2022-05-04 01:40:35 -07:00
Jonas Mueller 848bc964ff refactor and simplify code 2022-05-04 01:21:01 -07:00
Jonas Mueller 95fb15babe missing colon 2022-05-04 00:51:11 -07:00
Jonas Mueller fe59bc630c minor fixes 2022-05-04 00:45:44 -07:00
rushic24 8436cf8d12 move noise_matrix check 2022-05-03 17:30:05 -04:00
rushic24 1fe76736ce restructured 2022-05-03 17:23:18 -04:00
rushic24 d99b5b7c16 added custom sample_weight 2022-05-02 00:08:41 -04:00
Yulv-git aede5bd7db Fix some typos. (#242) 2022-04-23 12:17:20 -04:00
Jonas Mueller 10a327eef8 Fix edgecase divide-by-0 in entropy-score (#241)
* fix edgecase divide-by-0 in entropy-score 

* black format
2022-04-21 14:33:52 -07:00
Curtis G. Northcutt d8ab4e910b fix black formatting compliance (#224)
* fix black formatting compliance

* remove codecov for verbose statements
2022-04-17 21:57:15 -04:00
Jonas Mueller ecca2ab0a6 Bump version to 2.0.0 (#222)
* bump version

* Add brief release notes. see release for extensive

Co-authored-by: Curtis G. Northcutt <curtis.northcutt@gmail.com>
2022-04-16 18:55:11 -04:00
Curtis G. Northcutt 966acf8a61 final tutorial edits. dataset docstrings imp (#217)
* final tutorial edits. dataset docstrings imp

* add back instructions for user installation

* remove useless pycharm metadata.

* remove extraneous comma
2022-04-15 23:00:17 -04:00
Curtis G. Northcutt ee6494de4d Small clarification in docstring 2022-04-15 20:54:34 -04:00
Curtis G. Northcutt e971350795 Clarify and fix several docstrings. (#214)
* Clarify and fix several docstrings.

* Adjustments based on Jonas's comments.

* fix typo
2022-04-15 19:06:45 -04:00
Curtis G. Northcutt fac6c112aa health_summary bug fixes + notebook support (#212)
* bug fixes and jupyter notebook support added

* Increase test coverage.

* Fix bug. will always try to display if possible.
2022-04-15 14:54:00 -04:00
Curtis G. Northcutt a3b5da6306 fix broken printing of matrices (#207) 2022-04-14 01:08:49 -04:00
Curtis G. Northcutt 269a09d1b3 Fix error in docstring. missing item in tuple 2022-04-13 21:17:22 -07:00
Jonas Mueller b8b6623c1d Merge pull request #203 from anishathalye/doc-fixes
Make minor doc tweaks
2022-04-13 20:11:23 -07:00
Curtis G. Northcutt 0cbe03030e Add from . import dataset to init 2022-04-13 20:02:11 -07:00
Curtis G. Northcutt 08d7f2cdc6 Make fit(verbose) default False. Fix minor bugs. fix black and urls (#204)
* set verbose defaulat false. fix order of printing

* add newline for black format compliance

* fix broken url links in readme
2022-04-13 21:23:01 -04:00
Anish Athalye b305b417ad Make minor doc tweaks 2022-04-13 20:28:21 -04:00
Jonas Mueller d1a4bc86fd Returns DataFrame type from CleanLearning functions (#199)
* df return type, need tests still

* Add pandas as a dependency

We already decided that pandas will be a dependency of cleanlab (also
used in the dataset module, see
https://github.com/cleanlab/cleanlab/pull/182).

* Tweak documentation

* addressed comments

* remove lazy import

* address 2nd round comments

* unit tests

* improve codecov

* Fix typo

* methods to save more space

* nocover statements for prints

* extra nocover

* nocover warnings

* test docstring formatting

* test docstring formatting2

* test docstring formatting2

* move compress to helper, find-label docs params

* readded stuff lost in merge conflict

* addressed remaining PR review comments

* docs formatting

* docs formatting2

* docs formatting3

* docs formatting4

* docs formatting5

* docs formatting5

* docs formatting6

* docs formatting7

* docs formatting8

* docs formatting9

* docs formatting19

* docs formatting20

* docs formatting20

* docs formatting21

* code formatting

* fix a bug where confident joint isnt computed

The confident joint wasn't getting computed if noise_matrix was passed in and pred_probs was not passed in. But that's bad because it stops workflows like:

```python
cl = CleanLearning()
cl.fit(data, labels, noise_matrix=noise_matrix)
cleanlab.dataset.health_summary(labels, confident_joint=cl.confident_joint)
```

* fixed bug from last commit. code in wrong place.

* print overwrite bugfix

Co-authored-by: Anish Athalye <me@anishathalye.com>
Co-authored-by: Curtis G. Northcutt <curtis.northcutt@gmail.com>
2022-04-13 16:00:41 -04:00
Jonas Mueller 18b784f910 Readme reformat (#198)
* initial readme updates

* code example

* example errors image

* example errors image formatting

* example errors image formatting 2

* restof pulldowns

* rest of pulldowns formatting

* deleted extra details - pulldowns formatting

* pulldowns spacing

* pulldowns spacing

* news bullets

* release note link update

* Fix logo URL

* Fix whitespace errors

* Replace `cleanlab` -> cleanlab

This follows what we do in our documentation (see style guide in
DEVELOPMENT.md).

* Make various fixes and changes

* Hide bibtex behind summary/details

* updated example code for @cgnorthcutt feedback

Updated example code bringing back comments from the old readme, and updated the code snippet to use new CleanLearning API which is far more streamlined.

* example code formatting

* skeleton of migration guide added

* add changelog link

* Make banner logo transparent amazing in dark mode

* add link to docs migration guide

link needs to be verified, total guess

* link formatting fix in img caption

* add dataset module summary

* Major revision of entire README.

Co-authored-by: Anish Athalye <me@anishathalye.com>
Co-authored-by: Curtis G. Northcutt <curtis.northcutt@gmail.com>
2022-04-13 07:50:46 -04:00
Curtis G. Northcutt 9cdf5050f5 Clarify joint asymmetry in docs. reset indices in dfs 2022-04-12 23:46:23 -04:00
Anish Athalye 2597e3e81e Make key match function name
This makes it consistent with the other two,
"classes_by_label_quality" and "overlapping_classes".
2022-04-12 09:23:43 -04:00
Anish Athalye 374f6e053a Fix typo 2022-04-12 09:21:29 -04:00
Anish Athalye 8470c72667 Checkpoint addressing Jonas's feedback
Co-Authored-By: Curtis G. Northcutt <curtis.northcutt@gmail.com>
2022-04-11 17:45:33 -04:00
Anish Athalye dc6fa956cb Make a pass over docs 2022-04-11 13:15:43 -04:00
Anish Athalye eae292458f Merge branch 'master' into dataset_module 2022-04-11 12:45:21 -04:00
Curtis G. Northcutt 0fb2439713 Totally rewritten. class methods merged. now uses pandas. health summary. 2022-04-10 14:37:55 +00:00
Anish Athalye 0dc384a4ed Merge branch 'docs-cleanup' 2022-04-09 15:16:09 -04:00