提交

提交图

1813 次代码提交

作者 SHA1 备注 提交日期
Anish Athalye d1f5bbc8e1 Remove import of internal package (#195)
This import made `cleanlab.internal.util` available as `cleanlab.util`,
which we don't want.

Co-authored-by: Jonas Mueller <1390638+jwmueller@users.noreply.github.com>
2022-04-08 18:13:55 -07:00
Anish Athalye 2e9a1e226d Merge branch 'benchmarking' 2022-04-08 20:13:58 -04:00
Anish Athalye 0be3c70a6e Move noise_generation into benchmarking module 2022-04-08 20:08:19 -04:00
Johnson Kuan ec739eec23 Add self.labels as attribute of FastTextClassifier (#194)
* Add self.labels to fasttext.py
2022-04-08 15:53:11 -07:00
Anish Athalye 9128e9c250 Merge branch 'weijinglok/doc-gh' 2022-04-08 16:16:58 -04:00
Anish Athalye ccf6c4abc0 Add a bit of space above the star button 2022-04-08 16:12:16 -04:00
Wei Jing Lok 9c6ce93413 add gh icon to title 2022-04-09 03:21:05 +08:00
Anish Athalye 227c01de78 Merge pull request #190 from cgnorthcutt/count-docstring-updates
Minor improvements to count docstring
2022-04-08 13:12:28 -04:00
Curtis G. Northcutt 3a1f038e4d Add params to joint. link calibrate to joint. add type on docstring return 2022-04-08 13:01:53 -04:00
Anish Athalye 35fdebb211 Merge branch 'anishathalye/docs-link-checking' 2022-04-07 15:23:07 -04:00
Anish Athalye b886e9b289 Merge branch 'anishathalye/markdown-link-checking' 2022-04-07 15:22:45 -04:00
Jonas Mueller f8fe3fe9ee Merge pull request #185 from anishathalye/fast-docs
Add more ergonomic method to skip notebooks
2022-04-07 12:14:26 -07:00
Anish Athalye 947ea9e34a Fix typo in test (#186)
This test had a typo in it ("pred_neq_given" rather than
"predicted_neq_given"), but the way the test was written, it didn't
fail, because GridSearchCV raises a warning if some fits fail. This
patch fixes the typo and adds the assertion that no warnings are raised
during the grid search.
2022-04-07 12:12:50 -07: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
Anish Athalye f5a0ca5cd6 Merge pull request #184 from jwmueller/example_models
Move rest of example_models/ -> experimental/
2022-04-07 06:29:23 -04:00
Anish Athalye e76f2923c0 Remove deprecated test
It is annoying to re-enable this test because it's annoying to install
fastText / it doesn't run on all platforms we test in CI. Furthermore,
the data isn't available anymore (at least at the URL specified in
`get_cooking_stackexchange_data.sh`).
2022-04-07 06:21:16 -04:00
Anish Athalye c8635bb50c Add more ergonomic method to skip notebooks
This way, developers don't have to edit a file and remember to change it
back before submitting a pull request: that seems error-prone.
2022-04-07 05:53:54 -04:00
Jonas Mueller faac915740 mv example_models -> experimental 2022-04-07 01:25:03 -07:00
Wei Jing 205f503f15 Add figure to out-of-sample pred proba via cv tutorial (#183)
* add image to pred prob cross val tutorial
2022-04-07 00:25:29 -07:00
Jonas Mueller 8f5d41cacf Merge pull request #179 from anishathalye/editorconfig-ipynb
Make EditorConfig match Jupyter for notebooks
2022-04-06 21:04:53 -07:00
Jonas Mueller 423e5b0a07 Polish the APIs and file-structure to prepare for 2.0 release (#181)
* Makes some methods private that are not intended to be user-facing.
* Adds experimental module with fasttext.py and coteaching.py
* Adds header descriptions to code files which will render in docs
* Many miscellaneous fixes
2022-04-06 21:04:06 -07:00
Curtis G. Northcutt 06b990b5f1 Skeleton commit for first version of new dataset module. UNTESTED 2022-04-06 22:26:29 -04:00
Jonas Mueller 7315eded52 Merge pull request #180 from weijinglok/up-doc-readme
Update docs building instructions
2022-04-06 18:15:04 -07:00
Wei Jing Lok 7bf445aa4b update docs readme 2022-04-07 08:52:52 +08:00
Curtis G. Northcutt 2de67cbc34 Simple fix to Issue 158 (and potentially other issues) (#178)
* CleanLearning = Machine Learning with cleaned data

* Replace lnl instance naming with cl everywhere (CleanLearning)

* Add support for multi-class as well

* Add test based on #158

Co-authored-by: Anish Athalye <me@anishathalye.com>
2022-04-06 18:55:18 -04:00
Anish Athalye ca44e8f80d Make EditorConfig match Jupyter for notebooks
Jupyter notebook doesn't add a newline at EOF, so we shouldn't have
EditorConfig do it for .ipynb files either.
2022-04-06 18:21:58 -04:00
Curtis G. Northcutt c4e84624e9 CleanLearning = Machine Learning with cleaned data (#177)
* CleanLearning = Machine Learning with cleaned data

* Replace lnl instance naming with cl everywhere (CleanLearning)

* replace rp (rank pruning) with cl (clearn learning) everywhere

* Clarifying comments. remove unnecessary newlines. fix spelling err
2022-04-06 17:33:04 -04:00
Anish Athalye 263d81c664 Add note on EditorConfig to development guide (#176) 2022-04-06 12:20:09 -07:00
Curtis G. Northcutt 3094dac115 Drop support for Python 2.7 in README badge 2022-04-06 14:42:04 -04: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 3c935dbf6e Merge pull request #175 from weijinglok/deploy-master-only
Deploys docs only if triggered by master branch
2022-04-06 08:11:04 -04:00
Wei Jing Lok dded28c58c uncomment line that deploys docs if trig by master 2022-04-06 19:05:50 +08:00
Jonas Mueller a3bac68c26 Various tutorial improvements (#173)
* language/formatting/dependencies improvements for tutorials

* hidden cell tests enhanced

* fix num_crossval_folds usage
2022-04-05 21:20:40 -07:00
Wei Jing 7247b09aa1 Add test to check examples are found by cleanlab (#172)
* test that highlighted issues in notebooks are found by cleanlab
2022-04-05 17:17:31 -07: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
Wei Jing dcdb8905bb improve image tutorial model (#167) 2022-04-05 13:20:22 -07:00
Anish Athalye c3d2d1577d Merge pull request #170 from anishathalye/notebook-newlines
Add CI check for trailing newlines in notebooks
2022-04-05 15:48:06 -04:00
Anish Athalye f59acf8a6a Merge pull request #169 from anishathalye/notebooks-empty
Add CI check that .ipynb outputs are empty
2022-04-05 15:47:27 -04:00
Anish Athalye a903c4c022 Add CI check for trailing newlines in notebooks
The rendered docs don't look good when code cells have trailing
newlines.
2022-04-05 08:32:24 -04: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
Wei Jing 080c7a841c Add overview for computing out-of-sample predicted probabilities with cross-validation to doc site (#166)
* add pred probs cross val tutorial

Co-authored-by: Jonas Mueller <1390638+jwmueller@users.noreply.github.com>
2022-04-05 03:34:30 -07:00
Wei Jing 5b6d297b6c Add audio tutorial to doc site (#165)
* add audio tutorial
2022-04-05 03:16:07 -07:00
Wei Jing 1f60745b2c add text tutorial, update notebook titles and naming conventions (#154) 2022-04-04 20:56:34 -07: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
Jonas Mueller 89c172a359 Merge pull request #160 from anishathalye/py310
Add Python 3.10 to CI
2022-04-03 13:37:12 -07:00
Anish Athalye 78c30b04f7 Add Python 3.10 to CI 2022-04-03 14:22:49 -04:00
Jonas Mueller 3f17be685e Minor tutorial edits (#155)
* remove whats next in tutorial

* capitalize tutorial title
2022-04-01 08:45:58 -07:00
Jonas Mueller 2f60c0f263 Merge pull request #151 from weijinglok/add-tab-tut
Add tutorial for tabular data classification
2022-03-31 20:36:17 -07:00