文件历史

提交图

58 次代码提交

作者 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 bd32f1114b ignore keras.io in link check (#865) 2023-10-06 15:29:19 +09:00
Sanjana Garg ea9f62513e Updated docs requirements 2023-09-05 17:12:27 +01:00
Sanjana 944c61379d Cleanvision Integration (#679)
Co-authored-by: Jonas Mueller <1390638+jwmueller@users.noreply.github.com>
Co-authored-by: Elías Snorrason <eliassno@gmail.com>
2023-07-25 15:51:53 +00:00
Anish Athalye 63254c55b6 Fix regex
There are a couple levels of encoding here, which makes it hard to write
the regex.
2023-07-15 14:17:17 -04:00
Anish Athalye 216d00d218 Improve links and link checker for Markdown files (#768) 2023-07-10 09:44:27 -07:00
Ulyana 5f3de05e9e Temporary Github Actions workaround: Pin Python 3.7.16 (#748)
Co-authored-by: Sanjana Garg <garg.sanjana.95@gmail.com>
2023-06-22 16:30:24 -07:00
Anish Athalye 9b2dfc09ce Fix CI (#742)
Among other changes, this patch also disables HTML validation. This is a
bit tricky to get right, because when the Markdown is processed by
GitHub, it does some transformations that aren't mimicked by Pandoc. The
result of converting the existing Markdown to HTML using Pandoc is in
fact invalid HTML5.

The best way to fix this would be to use the [GitHub Markdown
API](https://docs.github.com/en/rest/markdown) to render the Markdown,
but that doesn't seem worth the effort right now. Instead, this patch
just disables HTML validation but preserves the link checking
functionality (and makes it start passing again).
2023-06-10 14:16:53 +00:00
Jonas Mueller 6ff06c8585 ignore twitter in link check (#708) 2023-05-09 21:23:38 -07:00
Sanjana a3ae30f1a4 CI tests without optional dependencies and min-versions installed (#701) 2023-05-09 14:09:01 -07:00
Hui Wen 6aaee8332b Create new cleanlab.models module (#601)
Co-authored-by: Jonas Mueller <1390638+jwmueller@users.noreply.github.com>
Co-authored-by: Elías Snorrason <eliassno@gmail.com>
2023-02-07 10:03:32 -08:00
Ulyana c191d8781d Fix format compatibility with latest black==23. release (#620) 2023-02-07 10:01:45 -08:00
Jonas Mueller 6ed61e0bb3 cap black version in CI (#618) 2023-02-02 01:13:59 -08:00
Jonas Mueller 9f655a7f6a remove slash at end (#606) 2023-01-19 21:04:56 -05:00
Jonas Mueller b9b981dc01 add cleanlab/projects to ignored URLs check list 2023-01-19 20:57:56 -05: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
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
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
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
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
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 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 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
Ilnar 10abd7d191 replace pylint --> flake8 in CI (#531)
* add flake8 configuration in setup.cfg
2022-11-08 16:08:57 +00:00
Jonas Mueller 9da372bb4d typecheck with python v3.10 (#521)
Thanks @huiwengoh for diagnosing this problem!
2022-11-03 23:17:41 -07:00
Ulyana a6d71bf2a0 CI: check cleanlab imports without optional dependencies installed (#470)
Co-authored-by: Elías Snorrason <eliassno@gmail.com>
2022-09-29 13:06:43 -07:00
Mohit Saxena 57adf33369 Adding pylint CI checks (#465)
* Update ci.yml

* remove unused import

* 💚 merge pylint jobs

* 🔧 add .pylintrc

* 🚨 handle pylint errors

Co-authored-by: Elías Snorrason <eliassno@gmail.com>
2022-09-23 16:10:03 +00:00
Anish Athalye f7e01ed382 Fix docs build in CI (#462)
This patch pins the Pandoc version to a more recent release (2.19.2).

As explained in d8cc2e5056, nbconvert
translates Markdown -> reST -> HTML, and it uses Pandoc for this
Markdown -> reST conversion. Older versions of Pandoc don't do a
high-fidelity conversion; in particular, they don't have great support
for mixed Markdown/HTML content.

Consider the following Markdown, the core of how we use the details
disclosure element in several tutorial notebooks:

    <details><summary>Summary</summary>

    Body.

    </details>

Using Pandoc 2.19.2, this converts to the following reST:

    .. raw:: html

       <details>

    .. raw:: html

       <summary>

    Summary

    .. raw:: html

       </summary>

    Body.

    .. raw:: html

       </details>

This is a correct conversion. However, using Pandoc 2.5, which is the version
of Pandoc that was being used by CI prior to this patch (the version of Pandoc
available in the package repository for Ubuntu 20.04), it converts as follows:

    .. raw:: html

       <details>

    Summary

    Body.

    .. raw:: html

       </details>

The <summary> tag is lost in this conversion.

This patch switches to a more recent version of Pandoc to fix this issue.
2022-09-16 19:29:48 -07:00
Elías Snorrason cdf6a147af ignore links to pradyunsg when validating HTML (#446) 2022-09-15 15:21:12 -07:00
Jonas Mueller a4ad6460a2 Format return docstrings and add typing (#437)
* typing and return docstrings

* address typing complaints

* allow redefinition

* typing complains for pandas

* .values -> to_numpy()
2022-09-15 11:46:14 +00:00
Elías Snorrason 0b5a089e37 fix typos in ci step names (#377)
[skip ci]
2022-08-24 09:01:20 -07:00
Jonas Mueller b93fdebf30 Add compatibility for tensorflow and pytorch Dataset objects (#311)
* validation_func docstring

* torch,tf compatibility+tests

* keras test

* skip tests if python < 3.7

* pytorch numpy int bug on windows

* make tensorflow test work on windows

* move tf env variable setting

* pytorch test increase epochs

* install cpu-tensorflow on windows CI

* torch test optimizer to adam

* fix bugs in shuffled TF dataset

* dummy unit test for TF on windows

* dummy code for TF windows testing

* deal with np.int bug on windows

* remove windows debugging code

* docstrings for new functionality

* address merge conflicts

* reformat after merge

* addressed comments
2022-07-27 21:42:13 -07:00
Anish Athalye 0705ff2d0a Add static type checking
Our package doesn't have type annotations everywhere, so we can't use
mypy in strict mode just yet. Still, adding type checking in CI is
valuable, so we don't have unchecked annotations in our code.

This patch includes basic fixes to make type checking pass, including
switching the incorrect `np.array` type annotation for `np.ndarray` and
adding some assertions for flow-sensitive typing.
2022-07-06 17:21:56 -04:00
Wei Jing 4aab0b0a56 create latest_release.txt file (#231) 2022-05-19 02:26:46 -07:00
Anish Athalye 6cb23afa1f Fix link checking (#257)
For some reason, GitHub is returning a 403 to the GitHub actions runner
when it tries to access these URLs. Maybe docs.github.com doesn't allow
access from GitHub actions.
2022-05-12 20:07:09 -07:00
Wei Jing Lok 31d2f2dbd7 add condition to deploy if ref_type is tag 2022-04-16 23:17:48 +08:00
Anish Athalye bf8e82d4bf Add support for LaTeX math in documentation 2022-04-09 07:33:24 -04:00
Anish Athalye 35fdebb211 Merge branch 'anishathalye/docs-link-checking' 2022-04-07 15:23:07 -04:00
Anish Athalye 8de8340313 Add link checking for compiled docs 2022-04-07 10:33:15 -04:00
Anish Athalye 6e09aee751 Add link checking for all Markdown files 2022-04-07 10:18:46 -04:00
Wei Jing Lok dded28c58c uncomment line that deploys docs if trig by master 2022-04-06 19:05:50 +08:00
Anish Athalye 6cac342613 Add CI check that .ipynb outputs are empty
Preserving the output cells in Jupyter notebooks that are checked in to
this repo bloat the repo size, and keeping the output is not necessary
because the notebooks are run as part of the CI for producing docs.

For example, in https://github.com/cleanlab/cleanlab/pull/165, the
`audio.ipynb` is 112K (and now part of the repo history forever), while
clearing the output cells reduces that size down to 24K. I suspect that
Git's delta compression will also work better without the output cells
there as we make changes to the notebook. Also, the diffs will be more
readable.
2022-04-05 08:15:54 -04:00
Anish Athalye c73336cb3a Merge branch 'development-guide' 2022-04-03 19:53:50 -04:00
Anish Athalye 9101b85e68 Add development guide
This patch also adds a pre-commit hook that runs Black.
2022-04-03 19:31:05 -04:00
Anish Athalye 78c30b04f7 Add Python 3.10 to CI 2022-04-03 14:22:49 -04:00
Wei Jing Lok 034eb80061 Change .ipynb files to use master ver of cleanlab 2022-03-27 17:45:05 +08:00
Wei Jing Lok da686a4006 update doc toc for 2.0 2022-03-24 03:28:14 +08:00
Wei Jing aca683ec80 Add image classification tutorial and streamline docs CI/CD (#127) 2022-03-22 19:34:27 -04:00