diff --git a/VERSION b/VERSION index 07feb82349..14a8c24575 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.17.0 \ No newline at end of file +0.17.1 \ No newline at end of file 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/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 ========== 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