Skip to content
Skills Library
Data & analytics · Testing

deepchecks-tests

/deepchecks-tests

Use for any question or task about checking ML data before or after training, including train-test leakage, data integrity problems, and models far better offline than in production. Runs Deepchecks data integrity, train-test validation and model evaluation suites on tabular, NLP or vision data, reruns them on production samples for drift and gates CI on passed conditions.

Repository
qa ↗
Licence
MIT
Last repository change
12.11.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
2
Scripts
0
HTML comments
0
URLs in SKILL.md
1
Deprecation

No signals detected. Repository changed on 12.11.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Use for any question or task about checking ML data before or after training, including train-test leakage, data integrity problems, and models far better offline than in production. Runs Deepchecks data integrity, train-test validation and model evaluation suites on tabular, NLP or vision data, reruns them on production samples for drift and gates CI on passed conditions.

Original author description

Use for any question or task about checking ML data before or after training, including train-test leakage, data integrity problems, and models far better offline than in production. Runs Deepchecks data integrity, train-test validation and model evaluation suites on tabular, NLP or vision data, reruns them on production samples for drift and gates CI on passed conditions.

How it works

  1. When to use
  2. Step 1 - Install
  3. Step 2 - Wrap data
  4. Step 3 - Run the data integrity suite
  5. Step 4 - Run the train-test validation suite
  6. Step 5 - Run the model evaluation suite
  7. Step 6 - Per-check thresholds
  8. Step 7 - CI integration
  9. Anti-patterns
  10. Limitations
Original SKILL.md headings · 145 lines, 493 words
SKILL.md preview
---
name: deepchecks-tests
description: "Use for any question or task about checking ML data before or after training, including train-test leakage, data integrity problems, and models far better offline than in production. Runs Deepchecks data integrity, train-test validation and model evaluation suites on tabular, NLP or vision data, reruns them on production samples for drift and gates CI on passed conditions."
metadata:
  keywords: "deepchecks, ml-testing, data-validation, train-test-split, model-evaluation"
  version: "1.3.7"
---

# deepchecks-tests

Deepchecks is *"a holistic open-source solution for all of your AI &
ML validation needs"* per the [Deepchecks welcome]. Validates **data
integrity, train-test splits, model evaluation, end-to-end model
development from research through production**.

## When to use

- Pre-training: validate data integrity + train-test leakage.
- Pre-deployment: model evaluation suite as merge gate.
- Production monitoring: same suite re-run on production samples
  to detect drift.

## Step 1 - Install

```bash
pip install deepchecks
```

Per the [Deepchecks welcome] page.

## Step 2 - Wrap data

For tabular models:

```python
from deepchecks.tabular import Dataset

train_ds = Dataset(
    train_df,
    label="target",
    cat_features=CATEGORICAL_COLUMNS,
)
test_ds = Dataset(
    test_df,
    label="target",
    cat_features=CATEGORICAL_COLUMNS,
)
```

`cat_features` matters for distribution checks. The Vision and NLP
APIs differ - see the [Deepchecks welcome] section linking
quickstarts for each data type.

## Step 3 - Run the data integrity suite

```python
from deepchecks.tabular.suites import data_integrity

integrity = data_integrity()
result = integrity.run(train_ds)
result.save_as_html("data_integrity.html")
```

Catches: duplicate rows, missing values, mixed types, conflicting
labels, single-value features, string mismatches.

## Step 4 - Run the train-test validation suite

```python
from deepchecks.tabular.suites import train_test_validation

validation = train_test_validation()
result = validation.run(train_ds, test_ds)
result.save_as_html("train_test_validation.html")
```

Catches: target drift, feature drift, train-test data leakage, label
imbalance, dataset size mismatch.

## Step 5 - Run the model evaluation suite

```python
from deepchecks.tabular.suites import model_evaluation

evaluation = model_evaluation()
result = evaluation.run(train_ds, test_ds, model)
result.save_as_html("model_evaluation.html")

if not result.passed_conditions():
    raise SystemExit("Deepchecks model evaluation failed")
```

Catches: performance regression vs baseline, weak segments, calibration
issues, prediction drift between train and test.

## Step 6 - Per-check thresholds

```python
from deepchecks.tabular.checks import FeatureDrift

check = FeatureDrift().add_condition_drift_score_less_than(
    max_allowed_categorical_score=0.2,
    max_allowed_numeric_score=0.1,
)
result = check.run(train_ds, test_ds)

if not result.passed_conditions():
    print(result.value)
    raise SystemExit("FeatureDrift failed threshold")
```

Each check has `add_condition_*` methods; chain them for per-check
gating.

## Step 7 - CI integration

```yaml
- name: Deepchecks suite
  run: |
    python ml/deepchecks_suite.py
- name: Upload Deepchecks reports
  uses: actions/upload-artifact@v4
  with:
    name: deepchecks-reports
    path: "*.html"
```

## Anti-patterns

| Anti-pattern | Why it fails | Fix |
|---|---|---|
| Skip `cat_features` | All categorical checks misfire | Always specify (Step 2) |
| Skip `data_integrity` suite | Train on leaky / dup-heavy data | Run before `train_test_validation` (Step 3) |
| Block CI on every check | Hundreds of warning conditions; team disables | Define per-check thresholds (Step 6); gate Critical only |
| Re-run on the SAME test split each PR | Fixed split → fixed results; no drift detection | Use rolling/cross-validation splits |
| Reuse training data as "current" for production monitoring | Always passes drift; blind to real drift | Use real production samples |

## Limitations

- Deepchecks' "default conditions" are tuned for textbook ML; they
  may be too strict for real-world skewed data. Tune via
  `add_condition_*` methods (Step 6).
- Vision suite memory footprint: large image datasets need batched
  runs. See the [Deepchecks welcome] vision quickstart link.

## References

- [Deepchecks welcome] - overview, install, suite/check architecture,
  per-data-type quickstart links

[Deepchecks welcome]: https://docs.deepchecks.com/stable/getting-started/welcome.html
Files in this package (2)
  • SKILL.md 4 KB
  • .tessl-plugin/plugin.json 1 KB

Versions

The database has no other skills named deepchecks-tests.

Database snapshot: 13.11.2026 · package version cf3eb3b8b3e4 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 1 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 90designing-leakage-safe-experiments
    Design leakage-safe machine learning experiments that mirror real deployment and support fair model comparisons. Use when defining prediction timing, feature eligibility, train-validation-test splits, baselines, metrics, or controlled model iterations; not for auditing whether…
  • 100leakage-hunter
    Use before reporting any metric from a machine learning model (tabular, time-series, text, or image), and whenever a score looks too good (very high AUC/accuracy/R2, train and test almost equal, one feature doing all the work). Detects duplicate rows across splits, target…
  • 100train-test-splitter
    Test train test splitter operations. Auto-activating skill for ML Training. Triggers on: train test splitter, train test splitter Part of the ML Training skill category. Use when writing or running tests. Trigger with phrases like "train test splitter", "train splitter", "train".
  • 100ml-engineer
    Use when a task needs the judgment of a Machine Learning/AI Engineer — checking a train/test split for data leakage, choosing an evaluation metric that accounts for class imbalance rather than defaulting to accuracy, verifying training and serving feature computation match…
  • 90train-test-discipline
    Split data before looking at it, respect time and groups, and quarantine the test set so scores mean something. Use when setting up ML evaluation or auditing why offline metrics did not survive production.
  • 100ml-data-leakage
    Prevents train/test leakage when writing or reviewing machine learning code. Use when splitting data, building preprocessing or feature selection steps, setting up cross-validation, oversampling, or when a validation score looks too good. Covers scalers, encoders, imputers,…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.