Your model seems to be sensitive to small perturbations in the input data. These perturbations can include adding typos, changing word order, or turning text into uppercase or lowercase. This happens when:
To learn more about causes and solutions, check our guide on robustness issues.
Feature `text` | Transform to uppercase | Fail rate = 0.481 | 156/324 tested samples (48.15%) changed prediction after perturbation |
324 samples affected (100.0% of dataset) | Show details Hide details |
Feature `text` | Transform to title case | Fail rate = 0.321 | 104/324 tested samples (32.1%) changed prediction after perturbation |
324 samples affected (100.0% of dataset) | Show details Hide details |
Feature `text` | Transform to lowercase | Fail rate = 0.132 | 42/318 tested samples (13.21%) changed prediction after perturbation |
318 samples affected (98.1% of dataset) | Show details Hide details |
Feature `text` | Add typos | Fail rate = 0.131 | 41/312 tested samples (13.14%) changed prediction after perturbation |
312 samples affected (96.3% of dataset) | Show details Hide details |
Feature `text` | Punctuation Removal | Fail rate = 0.094 | 28/299 tested samples (9.36%) changed prediction after perturbation |
299 samples affected (92.3% of dataset) | Show details Hide details |
Install the Giskard hub app to:
You can find installation instructions here.
from giskard import GiskardClient
# Create a test suite from your scan results
test_suite = results.generate_test_suite("My first test suite")
# Upload your test suite to your Giskard hub instance
client = GiskardClient("http://localhost:19000", "GISKARD_API_KEY")
client.create_project("my_project_id", "my_project_name")
test_suite.upload(client, "my_project_id")