文件历史

提交图

474 次代码提交

作者 SHA1 备注 提交日期
Jonas Mueller 5f9fd95c45 update crowdlab paper name 2023-01-29 23:48:49 -08:00
Chris Mauck f9d32b1352 Update tabular tutorial with better language (#609)
Co-authored-by: Jonas Mueller <1390638+jwmueller@users.noreply.github.com>
2023-01-24 21:12:34 -05:00
Chris Mauck a31b3cac78 tags in links (#604) 2023-01-19 16:34:36 -05:00
Ikko Eltociear Ashimine 1cf563c2a1 fix typo in outliers.ipynb (#603)
occuring -> occurring
2023-01-19 14:55:31 -05: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
Anish Athalye 9bca415130 Fix broken link 2022-12-31 10:36:32 -05: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 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
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
2022-11-28 15:47:15 +00:00
Jonas Mueller 7dd06d14a0 remove unnecessary TF warning suppression statements in tutorials (#544) 2022-11-26 11:25:58 -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
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
Aditya Thyagarajan ab2679724e Add multilabel tutorial to index.rst (#533) 2022-11-14 13:33:12 +00:00
Elías Snorrason 871f08693c Fix outdates links to example notebook for multilabel classification (#534) 2022-11-14 13:28:00 +00:00
Aditya Thyagarajan c32335c789 Tutorial for multi-label classification (#517)
clarification re empty list label, thanks to @elisno


Co-authored-by: Jonas Mueller <1390638+jwmueller@users.noreply.github.com>
2022-11-11 17:13:56 -08:00
Elías Snorrason 9e1e36fcc3 Add a link for How to Contribute in docs (#505)
* 📝 add section on how to contribute to project

* 📝 add external link to CONTRIBUTING.md

* move contribution guide link to Guides section

Co-authored-by: Jonas Mueller <1390638+jwmueller@users.noreply.github.com>
2022-11-08 09:18:46 +00:00
Ulyana 7b9c0cf54e Remove strong worded requirement for out-of-sample pred probs (#520)
Co-authored-by: Jonas Mueller <1390638+jwmueller@users.noreply.github.com>
2022-11-07 20:10:07 -08:00
Jonas Mueller aceaa4f25e Improve tutorials intro language/formatting (#526) 2022-11-06 00:34:54 -07:00
Aditya Thyagarajan b12d76b6d1 Multilabel code restructuring with aggregation/scorer functions (#509)
_find_label_issues_multilabel uses EMA instead of mean-pooling when computing label quality scores

Co-authored-by: Elías Snorrason <eliassno@gmail.com>
Co-authored-by: Jonas Mueller <1390638+jwmueller@users.noreply.github.com>
2022-10-28 16:26:39 -07:00
Jonas Mueller 00d7c2157c studio pointers (#510) 2022-10-25 17:51:00 -07:00
Hui Wen 738acae810 Point to format label function for multiannotator (#506) 2022-10-25 10:52:21 -07:00
Hui Wen f8a831d239 Add internal function to properly format labels (#504) 2022-10-24 10:54:59 -07:00
Jonas Mueller 00781ce984 update paper links (#503)
Co-authored-by: huiwengoh <45724323+huiwengoh@users.noreply.github.com>
2022-10-18 00:01:00 -07:00
Ulyana d27478853f Asthetic fixes for OOD tutorial (#493) 2022-10-03 10:26:14 -07:00
Jonas Mueller 6b8cb91908 Outlier tutorial: move uninteresting code to hidden cell (#492) 2022-09-30 00:17:48 -07:00
Jonas Mueller aedd0da886 mention crowdlab in multiannotator tutorial (#491) 2022-09-30 00:05:49 -07:00
Hui Wen bee40afd38 Doc edits: change header size in tutorials and better supress tf errors (#484) 2022-09-28 21:27:53 -07:00
Jonas Mueller 34acd0f19f tf-io tutorial version pinned, docstring improvements [include in 2.1 docs] (#466) 2022-09-22 14:37:44 -07:00
Elías Snorrason 28446e949e Pass docs versions as context variables to jinja (#482)
This replaces the fix in #480.
2022-09-22 21:05:12 +00:00
Elías Snorrason f9039e63e3 Add docs version links on page load. (#480)
Fixes #467, fixes #468
2022-09-22 18:43:46 +00:00
Curtis G. Northcutt ac59f4f486 Clearer code examples on docs main page (#430)
* Prepare for v2.1.0 release

Co-authored-by: Elías Snorrason <eliassno@gmail.com>
Co-authored-by: Jonas Mueller <1390638+jwmueller@users.noreply.github.com>
2022-09-16 21:52:23 -07:00
Ulyana 5da046da9e Added support for returning ranked issue idxs (#459)
* Added support for returning ranked issue idxs
- code
- tests
- docstring

Co-authored-by: Jonas Mueller <1390638+jwmueller@users.noreply.github.com>
Co-authored-by: Curtis G. Northcutt <curtis.northcutt@gmail.com>
2022-09-16 20:20:52 -07:00
Anish Athalye 02ab55dff0 Add missing backticks and language annotation (#461) 2022-09-16 18:52:36 -07:00
Jonas Mueller 2eec20ea44 remove moderate dimension comment 2022-09-16 15:14:00 -07:00
Anish Athalye d8cc2e5056 Fix details disclosure elements in docs (#456)
This patch makes the following fixes:

- Make summary text appear on the same line as the ">" arrow marker;
  prior to this patch, it was being pushed down to the next line because
  there were nested block elements inside the <summary> element
- Style details element to visually delineate collapsible content with
  dashed lines above and below the content
- Add syntax highlighting for code blocks in details disclosure elements
  (some were missing syntax highlighting)
- Hide a cell that was meant to be hidden in the audio tutorial

The summary element looked ugly due to a block element being present
inside the <summary>. This was present in the rendered docs even though
it was not explicitly in the source. Even though our source (in a
Markdown cell in a Jupyter notebook) looked like:

    <summary>Example text</summary>

The rendered docs had:

    <summary><p>Example text</p></summary>

The easy fix was to leave this as-is and fix the styling with CSS,
making all elements inside the summary to be displayed as inline
elements.

Where was the extra <p> tag coming from? Different Markdown parsers
handle mixed Markdown/HTML differently. We are using nbsphinx, which
does something especially weird [1]: converting from Markdown ->
reStructuredText -> HTML.

For example, consider the following Markdown:

    <details><summary>Summary</summary>

    Body.

    </details>

nbsphinx was first converting it to this reST:

    .. raw:: html

       <details>

    .. raw:: html

       <summary>

    Summary

    .. raw:: html

       </summary>

    Body.

    .. raw:: html

       </details>

And then this reST was being converted to HTML. This is where the extra
<p> was coming from.

One workaround for this behavior is to switch to raw HTML cells in the
notebook, rather than Markdown cells, and write pure HTML there. This
has the disadvantage that it's inconvenient when the content inside the
<details> has extra markup: Markdown is very convenient for that (e.g.,
for styling text), and having the contents being parsed as Markdown also
allows us to easily use syntax highlighting inside the body.

Another workaround is to use raw reST cells [2] and write the proper
reST directly (avoiding the bad Markdown -> reST conversion). This
preserves the ability to use convenient formatting (though with reST
instead of Markdown) as well as syntax-highlighted code blocks. For
example:

    .. raw:: html

        <details><summary>Summary</summary>

    .. code-block:: python

        def meaning_of_life():
            return 42

    .. raw:: html

        </details>

The above snippet produces the expected HTML, with syntax-highlighted
code in the body, and without the extra <p> inside the <summary>.

Rather than either of these workarounds, the most convenient one for
developers is to fix the issue using CSS, so that the Markdown cells in
the tutorials can be left as-is and no special care is required when
writing details disclosure elements, which is what this patch does.

[1]: https://github.com/spatialaudio/nbsphinx/blob/fc79fd1ac5ab6df225b256ef4ca203c58c5ad92b/src/nbsphinx.py#L1309
[2]: https://nbsphinx.readthedocs.io/en/0.8.9/raw-cells.html#reST
2022-09-16 12:11:05 -07:00
Jonas Mueller a24dda5da8 clarify features for multiannotator tutorial 2022-09-16 11:22:02 -07:00
Jonas Mueller 7256cd3546 More improvements to token classification code and documentation (#452)
* improved token docs/code

* format paragraphs in docstrings

* fix typo

Co-authored-by: Elías Snorrason <eliassno@gmail.com>
2022-09-16 14:04:45 +00:00
Jonas Mueller 688c39c202 hide redundant display_example in audio tutorial 2022-09-16 04:09:15 -07:00
Jonas Mueller 5d900200e5 mention make_data in multiannotator tutorial 2022-09-16 03:46:03 -07:00
Jonas Mueller 1b76f4ff1b Improve docstrings for keras wrapper (#447)
* improved docstrings for keras wrapper

* hide inheritance from keras wrapper docstrings

* black formatting
2022-09-15 15:36:35 -04:00
Jonas Mueller 9240a8c56d rst file for keras wrapper 2022-09-15 10:08:12 -07:00
Elías Snorrason 5167d23b71 Update links to example notebooks (#444)
Related to cleanlab/examples#21
2022-09-15 11:10:33 -04:00
Jonas Mueller 7ccdb5491f Add keras wrapper to docs (#443)
* Delete huggingface_keras_classifier.py

* Update keras.py

* readme language, remove huggingfacekerasclassifier

* language improvements

* reorder modules

* make keras.py appear in docs
2022-09-15 00:47:31 -07:00
Elías Snorrason fd50f6b9c6 Deploy docs for token classification module (#438)
* docs: 📝 add usage example for get_sentence

Also remove types in docstrings.

* docs: 📝 add usage examples for filter_sentence

* docs: 📝 add page for internal.token_classification_utils

* docs: 📝 remove name of return variable

auto-tagging won't work correctly for the return value if it's not a tuple

* 📝 add pages for modules in cleanlab.token_classification

* fix indentation

* 📝 add token classification api to toctree

* 🎨 format docstrings

* 📝 add usage examples

* update example comment

* 📝 add usage examples

* 📝 add return variable name in docstring

* 📝 remove some hard-coded params types in rank module

Keep more complex parameters hard-coded for now. E.g. "enum"-like parameters.

* 🎨 remove indentation of parameters in docstrings

* 🎨 fix indentation

* colored docstring typo + formatting

* typo: occurence

* probs_merged docstring typo + formatting

Co-authored-by: Jonas Mueller <1390638+jwmueller@users.noreply.github.com>
2022-09-14 14:59:26 -07:00
Hui Wen d74dda0ed9 fix code and md inconsistency (#442) 2022-09-14 14:45:09 -07:00