提交

提交图

1649 次代码提交

作者 SHA1 备注 提交日期
Elías Snorrason 4a5d0653fe Handle missing type parameters for generic type "ndarray" (#587)
* refactor(multi-label): 🏷️ parametrize `NDArray`

A generic type variable, `T`, that represents the precision of a data type.

While the data types for probabilities and scores are identical, it conceptually makes sense to define separate type aliases for each.

`np` is only used in defining the floating data type, which is only used for type hints.

* mention shape of array in the docstring description

+ other clarity improvements

Co-authored-by: Jonas Mueller <1390638+jwmueller@users.noreply.github.com>
2023-01-07 14:45:50 +00:00
Aditya Thyagarajan 7b589f6d63 updating copyright year to include 2023 (#594) 2023-01-06 21:25:57 -08:00
Ulyana ebadffdebe Use euclidean distance for identifying outliers for lower dimensional features (#581)
Co-authored-by: Jonas Mueller <1390638+jwmueller@users.noreply.github.com>
2023-01-06 21:25:23 -08:00
Hui Wen fe9efda269 update docs dependencies (#593) 2023-01-06 14:22:16 -08:00
Hui Wen d911acc7e8 Remove temp scaling from single annotator case (#590)
Co-authored-by: Jonas Mueller <1390638+jwmueller@users.noreply.github.com>
2023-01-06 09:54:01 -08:00
Jonas Mueller fdfb029001 clarify thresholding in issues_from_scores (#582) 2023-01-06 08:55:42 -08:00
Hui Wen 248bb91378 Revamp text tutorial to use cleanlab Keras wrapper (#584)
Co-authored-by: Jonas Mueller <1390638+jwmueller@users.noreply.github.com>
2023-01-06 08:53:02 -08:00
Ulyana 7caed93784 Update github actions (#589)
update: github actions to v3, codecov to v3, setup-python to v4, setup node v2 to v3, setup cache v2 to v3
2023-01-05 21:42:34 -08:00
Curtis G. Northcutt 0d9fee88a9 add maximum line length (#583)
and clarify where black settings are found in DEVELOPMENT guide


Co-authored-by: Jonas Mueller <1390638+jwmueller@users.noreply.github.com>
2023-01-04 17:31:16 -08:00
Sanjana aa1542bd71 Drop python 3.6 support from dependencies in setup.py (#579) 2023-01-01 22:03:19 -08:00
Jonas Mueller 36b46c195f mention applications beyond label error detection in readme (#580) 2023-01-01 14:24:53 -08:00
Anish Athalye 9bca415130 Fix broken link 2022-12-31 10:36:32 -05:00
Mayank Kumar 5c60fb623d Remove python 3.6 support (#578) 2022-12-28 18:25:42 -08:00
Jonas Mueller 2c69094da1 drop python 3.6 from CI (#577)
followup PR will remove mentions of 3.6 support
2022-12-28 14:40:56 -08:00
Jonas Mueller 9ec3a74d85 clarify not to use basic mypy without the CI flags 2022-12-28 14:18:33 -08:00
Jonas Mueller 8350ef5a74 additional readme improvements (#575)
better formatting and more concise language
2022-12-23 20:57:04 -08:00
Jonas Mueller aee2719652 update paper list (#574) 2022-12-23 19:47:41 -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 75bac0a284 Specify Sphinx to order functions by source code order (#571)
also re-order rank.py functions by moving specific types of label-quality scores to be last in file


Co-authored-by: Jonas Mueller <1390638+jwmueller@users.noreply.github.com>
2022-12-22 09:14:44 -08:00
Jonas Mueller c0b4e58471 multiannotator explanation improvements (#570)
more clarification when to use active learning vs fixed dataset analysis functions
2022-12-22 00:35:18 -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
Jonas Mueller f18279856f Update version.py (#550) 2022-12-16 23:32:41 -08:00
Ulyana a6c8e9f622 Fix typo (#566) 2022-12-13 16:19:06 -08:00
Hui Wen d62fad78a6 Fix text tutorial, use GBM model in tabular tutorial (#565)
Co-authored-by: Jonas Mueller <1390638+jwmueller@users.noreply.github.com>
2022-12-13 13:11:11 -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
Anish Athalye 0e4e38a9ef Add back testing Python 3.6 (#562)
If we want to continue supporting Python 3.6 (as we claim in the
README), we should make sure we keep testing with it.
2022-12-11 17:57:23 -08:00
Jonas Mueller 6471d0d90a update linting link to new action 2022-12-09 00:48:45 -08:00
Hui Wen d7723d5159 change nblint to gh actions (#560) 2022-12-09 00:41:41 -08:00
Jonas Mueller 7b1946e75b remove python 3.6 testing in CI (#558) 2022-12-06 13:29:45 -08:00
Jonas Mueller 3a6f33c1ff typo: probabilites -> probabilities (#557) 2022-12-05 21:36:56 -08:00
Ulyana a14d810b9b Shorten tutorial titles in docs for readability (#553)
Co-authored-by: Jonas Mueller <1390638+jwmueller@users.noreply.github.com>
2022-12-02 11:58:51 -08:00
Jonas Mueller 5a8619a274 Add v2.2.0 to RELEASE_VERSIONS in html_context (#552)
CI / Format (push) Has been cancelled
CI / Test: Python 3.10 on macos-latest (push) Has been cancelled
CI / Test: Python 3.6 on macos-latest (push) Has been cancelled
CI / Test: Python 3.7 on macos-latest (push) Has been cancelled
CI / Test: Python 3.8 on macos-latest (push) Has been cancelled
CI / Test: Python 3.9 on macos-latest (push) Has been cancelled
CI / Check for unused/wildcard imports (push) Has been cancelled
CI / Test: Python 3.10 on ubuntu-latest (push) Has been cancelled
CI / Test: Python 3.6 on ubuntu-latest (push) Has been cancelled
CI / Test: Python 3.7 on ubuntu-latest (push) Has been cancelled
CI / Test: Python 3.8 on ubuntu-latest (push) Has been cancelled
CI / Test: Python 3.9 on ubuntu-latest (push) Has been cancelled
CI / Lint Notebooks (push) Has been cancelled
CI / Test: Python 3.10 on windows-latest (push) Has been cancelled
CI / Test: Python 3.6 on windows-latest (push) Has been cancelled
CI / Test: Python 3.7 on windows-latest (push) Has been cancelled
CI / Test: Python 3.8 on windows-latest (push) Has been cancelled
CI / Test: Python 3.9 on windows-latest (push) Has been cancelled
CI / Type check (push) Has been cancelled
GitHub Markdown Links / test (push) Has been cancelled
v2.2.0
2022-11-28 15:47:15 +00:00
Jonas Mueller 95032fadae update readme for v2.2 (#551) 2022-11-28 02:11:42 -08:00
Jonas Mueller 7d9a98b0cf black formatting 2022-11-28 01:09:52 -08:00
Jonas Mueller f0226d5f3e increment version to 2.2 2022-11-28 01:04:55 -08:00
Jonas Mueller 8fda383d2d point to find_label_issues in multilabel_classification.py 2022-11-28 00:46:56 -08:00
Jonas Mueller 7dd06d14a0 remove unnecessary TF warning suppression statements in tutorials (#544) 2022-11-26 11:25:58 -08:00
Anish Athalye 7b87535e48 Remove unnecessary type: ignore annotations (#549) 2022-11-26 14:44:54 +00:00
Anish Athalye ecefdbf3d6 Switch CI cron schedule (#548)
Previously, the CI cron schedule, copy-pasted from a personal project,
ran jobs at 8am UTC (3am EST or 4am EDT) on Saturday. This isn't a great
time to get emails about CI breakages.

This patch switches the schedule so it runs on Monday morning (7am EST /
8am EDT).

[skip ci]
2022-11-26 14:43:55 +00:00
Anish Athalye 91cb6a7de0 Fix passing of kwargs to get_label_quality_scores (#547)
The functions `_get_consensus_stats` and
`_get_annotator_label_quality_score` take an argument
`label_quality_score_kwargs`, a dictionary of keyword arguments to pass
to `get_label_quality_scores`. When passing a
`label_quality_score_kwargs` dictionary to these functions, using the
unpacking operator is incorrect: that would be an extra level of
unpacking. The _implementations_ of these functions will unpack the
`label_quality_score_kwargs` when calling `get_label_quality_scores`.
This patch fixes the issue and adds a basic regression test.

[skip ci]
2022-11-26 14:41:47 +00:00
Anish Athalye d4fe568024 Fix types to work with latest pandas-stubs (#546)
The latest pandas-stubs (1.5.2.221124) changed the type of
`.apply(f, ...)` such that the function `f` must return either a
`Scalar` or a `Series`. This patch updates the functions to return a
`Series`. Note that this has minimal impact on runtime performance,
because by default, the pd.Series constructor does *not* copy the
underlying data.

[skip ci]
2022-11-26 14:39:33 +00:00
Anish Athalye 91b5b40ff7 Move mypy configuration to config file (#545)
This patch moves the `--allow-redefinition` into the `.mypi.ini` file.
Centralizing our mypy config in a single file makes sense, and this way,
if people want to run mypy locally, they don't need to remember to
supply this command-line argument.
2022-11-26 08:07:38 -05:00
Jonas Mueller a222859569 Improve docs in label error detection methods for classification data + filter/count mypy type annotations (#543) 2022-11-23 23:01:36 -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
Jonas Mueller 6d8c611fe7 ask for runnable code in Help issue template 2022-11-19 15:55:14 -08:00
Jonas Mueller d2d481be46 dependencies between classes: multilabel tutorial 2022-11-17 19:14:55 -08:00
Jonas Mueller c86c51dd23 multilabel tutorial fixes: install colab, set seed, text improvements (#537)
Co-authored-by: Aditya Thyagarajan <aditya1593@icloud.com>
2022-11-17 07:09:25 -08:00
Jonas Mueller 0727a7da4d github actions with TF_CPP_MIN_LOG_LEVEL = 3 (#536)
set environ variable TF_CPP_MIN_LOG_LEVEL = 3 to suppress unnecessary tensorflow prints when building tutorials on github server
2022-11-15 14:11:17 -08:00