From 0cda40a17ab8b23cebfa212e68993566e34a1a52 Mon Sep 17 00:00:00 2001 From: Nir Hutnik <92314933+nirhutnik@users.noreply.github.com> Date: Wed, 7 Jun 2023 18:34:10 +0300 Subject: [PATCH 1/3] 0.17.x update to main (#2587) * updated version * update version of main --- VERSION | 2 +- docs/source/_static/switcher.json | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index 6c4ade69fd..bcd2dfc3e7 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.14.1.dev1 \ No newline at end of file +0.17.0.dev1 \ No newline at end of file diff --git a/docs/source/_static/switcher.json b/docs/source/_static/switcher.json index 15ea2c33d1..e2a9c86ce5 100644 --- a/docs/source/_static/switcher.json +++ b/docs/source/_static/switcher.json @@ -6,8 +6,12 @@ }, { "version": "stable", - "name": "0.14 (stable)", + "name": "0.17 (stable)", "url": "https://docs.deepchecks.com/stable/" + }, + { + "version": "0.17", + "url": "https://docs.deepchecks.com/0.17/" }, { "version": "0.14", From 8cf55076f481225b0afee62ccad76c9df41e33b6 Mon Sep 17 00:00:00 2001 From: Yurii Romanyshyn <71635444+yromanyshyn@users.noreply.github.com> Date: Thu, 8 Jun 2023 09:53:21 +0300 Subject: [PATCH 2/3] [MON-2260] 'un_numpy' func fix (#2586) * fix * fix * fix --- deepchecks/utils/dataframes.py | 8 ++++++++ spelling-allowlist.txt | 3 +++ 2 files changed, 11 insertions(+) diff --git a/deepchecks/utils/dataframes.py b/deepchecks/utils/dataframes.py index 589c871fe1..d1ef3e3ce5 100644 --- a/deepchecks/utils/dataframes.py +++ b/deepchecks/utils/dataframes.py @@ -104,6 +104,14 @@ def un_numpy(val): ------- returns the numpy value in a native type. """ + if isinstance(val, np.str_): + # NOTE: + # 'np.str_' is instance of the 'np.generic' but + # 'np.isnan(np.str_())' raises an error with a next message: + # >> TypeError: ufunc 'isnan' not supported for the input types...) + # + # therefore this 'if' statement is needed + return val.item() if isinstance(val, np.generic): if np.isnan(val): return None diff --git a/spelling-allowlist.txt b/spelling-allowlist.txt index e8a14b54f4..8ae83ecca4 100644 --- a/spelling-allowlist.txt +++ b/spelling-allowlist.txt @@ -159,3 +159,6 @@ huggingface tiktoken ai idx +isnan +'isnan' +ufunc \ No newline at end of file From a26f5cb3f5dc857f6974ead388379bc0eb12ff77 Mon Sep 17 00:00:00 2001 From: Nadav Barak <67195469+Nadav-Barak@users.noreply.github.com> Date: Thu, 8 Jun 2023 09:55:46 +0300 Subject: [PATCH 3/3] Nb/docs/small fixes (#2589) * removed alpha for nlp --- .../general/concepts/when_should_you_use.rst | 5 +++-- docs/source/getting-started/welcome.rst | 16 ++++++++-------- docs/source/nlp/index.rst | 6 +++--- .../plot_multi_label_classification.py | 4 ++-- .../quickstarts/plot_text_classification.py | 4 ++-- .../quickstarts/plot_token_classification.py | 4 ++-- 6 files changed, 20 insertions(+), 19 deletions(-) diff --git a/docs/source/general/concepts/when_should_you_use.rst b/docs/source/general/concepts/when_should_you_use.rst index 933f19149f..fa709909a2 100644 --- a/docs/source/general/concepts/when_should_you_use.rst +++ b/docs/source/general/concepts/when_should_you_use.rst @@ -22,8 +22,9 @@ Built-In Suites - API Reference ================================ Check the :mod:`deepchecks.tabular.suites` in the API reference for a list of all of the built-in suites for tabular data, -:mod:`deepchecks.vision.suites` for vision data (in beta release) or -:mod:`deepchecks.nlp.suites` for nlp data (in alpha release). +:mod:`deepchecks.nlp.suites` for nlp data or +:mod:`deepchecks.vision.suites` for vision data (in beta release). +. Typical Validation Scenarios diff --git a/docs/source/getting-started/welcome.rst b/docs/source/getting-started/welcome.rst index 4a56c56bae..412fb5df50 100644 --- a/docs/source/getting-started/welcome.rst +++ b/docs/source/getting-started/welcome.rst @@ -65,6 +65,14 @@ Get Started with Deepchecks Testing Quickstarts, main concepts, checks gallery and end-to-end guides demonstrating how to start working Deepchecks with tabular data and models. + .. grid-item-card:: 🔤️ NLP 🔤️ + :link-type: ref + :link: nlp__index + + Quickstarts, main concepts, checks gallery and end-to-end guides demonstrating + how to start working Deepchecks with textual data. + Future releases to come! + .. grid-item-card:: 🎦‍ Computer Vision (Note: in Beta Release) 🎦‍ :link-type: ref :link: vision__index @@ -72,14 +80,6 @@ Get Started with Deepchecks Testing Quickstarts, main concepts, checks gallery and end-to-end guides demonstrating how to start working Deepchecks with CV data and models. Built-in support for PyTorch, TensorFlow, and custom frameworks. - - .. grid-item-card:: 🔤️ NLP (Note: in Alpha Release) 🔤️ - :link-type: ref - :link: nlp__index - - Quickstarts, main concepts, checks gallery and end-to-end guides demonstrating - how to start working Deepchecks with textual data. - Future releases to come! .. grid-item-card:: 🚀 Interactive Checks Demo 🚀 :link-type: url diff --git a/docs/source/nlp/index.rst b/docs/source/nlp/index.rst index 6c5251c163..ca1de33d7d 100644 --- a/docs/source/nlp/index.rst +++ b/docs/source/nlp/index.rst @@ -4,12 +4,12 @@ NLP === -Deepchecks for NLP is currently in alpha. -Jump over to the :ref:`nlp__quickstarts` in the Tutorials section to get started, +Deepchecks NLP sub package contain a large variety of checks and suites for different use cases. +Jump over to the :ref:`nlp__quickstarts` in the Tutorials section to get started, or visit the :ref:`getting-started__installation` for a full guide about how to set up your environment. -This is an alpha release and you can help us develop it further! You can provide feedback and suggestions as issues on +Help us develop it further! You can provide feedback and suggestions as issues on `GitHub `__, or by joining our `Community Slack `__. diff --git a/docs/source/nlp/tutorials/quickstarts/plot_multi_label_classification.py b/docs/source/nlp/tutorials/quickstarts/plot_multi_label_classification.py index 7280905a4f..0d35199356 100644 --- a/docs/source/nlp/tutorials/quickstarts/plot_multi_label_classification.py +++ b/docs/source/nlp/tutorials/quickstarts/plot_multi_label_classification.py @@ -27,7 +27,7 @@ .. code:: python import sys - !{sys.executable} -m pip install deepchecks[nlp] -U --quiet #--user + !{sys.executable} -m pip install 'deepchecks[nlp]' -U --quiet #--user Some properties calculated by ``deepchecks.nlp`` require additional packages to be installed. You can install them by running: @@ -35,7 +35,7 @@ .. code:: python import sys - !{sys.executable} -m pip install deepchecks[nlp-properties] -U --quiet #--user + !{sys.executable} -m pip install 'deepchecks[nlp-properties]' -U --quiet #--user Setting Up ========== diff --git a/docs/source/nlp/tutorials/quickstarts/plot_text_classification.py b/docs/source/nlp/tutorials/quickstarts/plot_text_classification.py index fa7e89f67d..48448dc611 100644 --- a/docs/source/nlp/tutorials/quickstarts/plot_text_classification.py +++ b/docs/source/nlp/tutorials/quickstarts/plot_text_classification.py @@ -31,7 +31,7 @@ .. code:: python import sys - !{sys.executable} -m pip install deepchecks[nlp] -U --quiet #--user + !{sys.executable} -m pip install 'deepchecks[nlp]' -U --quiet #--user Some properties calculated by ``deepchecks.nlp`` require additional packages to be installed. You can install them by running: @@ -39,7 +39,7 @@ .. code:: python import sys - !{sys.executable} -m pip install deepchecks[nlp-properties] -U --quiet #--user + !{sys.executable} -m pip install 'deepchecks[nlp-properties]' -U --quiet #--user Setting Up ========== diff --git a/docs/source/nlp/tutorials/quickstarts/plot_token_classification.py b/docs/source/nlp/tutorials/quickstarts/plot_token_classification.py index 2588b54dee..56e149c528 100644 --- a/docs/source/nlp/tutorials/quickstarts/plot_token_classification.py +++ b/docs/source/nlp/tutorials/quickstarts/plot_token_classification.py @@ -31,7 +31,7 @@ .. code:: python import sys - !{sys.executable} -m pip install deepchecks[nlp] -U --quiet #--user + !{sys.executable} -m pip install 'deepchecks[nlp]' -U --quiet #--user Some properties calculated by ``deepchecks.nlp`` require additional packages to be installed. You can also install them by running: @@ -39,7 +39,7 @@ .. code:: python import sys - !{sys.executable} -m pip install deepchecks[nlp-properties] -U --quiet #--user + !{sys.executable} -m pip install 'deepchecks[nlp-properties]' -U --quiet #--user Setting Up ==========