deepchecks / deepchecks

Deepchecks: Tests for Continuous Validation of ML Models & Data. Deepchecks is a holistic open-source solution for all of your AI & ML validation needs, enabling to thoroughly test your data and models from research to production.

Home Page:https://docs.deepchecks.com/stable

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[BUG] display bug UnknownTokens

Nadav-Barak opened this issue · comments

Describe the bug
Display looks weird when:

  1. there are no unknown tokens
  2. their percentage are very small
  3. their percentage are very very small (rounded to 0 as in second image)

To Reproduce
run the check on just_dance_comment_analysis

from deepchecks.nlp.checks import UnknownTokens
from deepchecks.nlp.datasets.classification import just_dance_comment_analysis

train, _ = just_dance_comment_analysis.load_data(use_full_size=True)
UnknownTokens().run(train)
image

from deepchecks.nlp.checks import UnknownTokens
from deepchecks.nlp.datasets.classification import just_dance_comment_analysis

train, _ = just_dance_comment_analysis.load_data(use_full_size=False)
UnknownTokens().run(train)image

Fixed