# Walidacja i testy danych

EN: **Data validation and testing** · id `datavalidation` · aliases: data validation, data tests, Great Expectations, schema

Path: [AI Atlas](https://aiatlasgraph.com/llms.txt) › [Dane dla AI](https://aiatlasgraph.com/t/data.md) › [Pipeline’y i wersjonowanie](https://aiatlasgraph.com/t/pipelines.md) › Walidacja i testy danych

## Description

- PL: Automatyczne sprawdzanie, czy dane wejściowe mają oczekiwany schemat, zakresy i rozkłady, zanim trafią do treningu lub modelu w produkcji.
- EN: Automatically checking that incoming data has the expected schema, ranges and distributions before it reaches training or a production model.

## In one sentence

- PL: To automatyczne sprawdzanie danych, zanim trafią do uczenia lub działającego modelu.
- EN: This automatically checks data before it reaches model training or a working model.

## Problem it solves

- PL: Brakujące pola, błędne wartości lub nagła zmiana danych mogą zepsuć wyniki, choć program nadal działa.
- EN: Missing fields, incorrect values or sudden data changes can spoil results even while the software keeps running.

## What it does

- PL: Sprawdza wymagane pola, dopuszczalne wartości i niespodziewane zmiany proporcji danych, a niezgodności kieruje do wyjaśnienia.
- EN: It checks required fields, allowed values and collection patterns, then flags mismatches for investigation.

## Everyday example

- PL: Przed uruchomieniem prognozy program zauważa, że nowy plik zamówień nie zawiera dat, i zgłasza problem do sprawdzenia.
- EN: Before running a forecast, software notices that a new order file lacks dates and flags the problem for review.

## This concerns you if you…

- PL: model otrzymuje regularnie nowe pliki lub wpisy
- PL: chcesz wykrywać problemy, zanim wpłyną na odpowiedzi
- EN: have a model receiving new files or records regularly
- EN: want problems caught before they affect answers

## Keywords

Great Expectations · schema checks · data contracts · training-serving skew · distribution tests · data assertions

## How it works

- PL: Kontrakt danych definiuje schemat, zakresy i relacje między polami. Testy porównują bieżące statystyki z oczekiwaniami lub próbką referencyjną, blokując albo oznaczając partie z naruszeniami.
- EN: A data contract defines schemas, ranges and relationships between fields. Tests compare current statistics with expectations or a reference sample, blocking or flagging batches with violations.

## Limits

- PL: Zgodny schemat nie dowodzi poprawności znaczenia. Progi rozkładów muszą uwzględniać sezonowość i wielokrotne porównania, aby nie mylić zwykłych zmian z błędem.
- EN: Schema compliance does not prove semantic correctness. Distribution thresholds must account for seasonality and multiple comparisons to avoid mistaking normal changes for errors.

## Key terms

- PL: **kontrakt danych**: Zapis oczekiwanej struktury i warunków poprawności danych.
- PL: **próbka referencyjna**: Dane stanowiące punkt odniesienia dla porównań jakości i rozkładów.
- EN: **data contract**: A specification of expected structure and data-validity conditions.
- EN: **reference sample**: Data serving as a baseline for quality and distribution comparisons.

## Know first

- [Rozkłady prawdopodobieństwa (Probability distributions)](https://aiatlasgraph.com/t/distributions.md)
- [Testy statystyczne i przedziały ufności (Hypothesis tests and confidence intervals)](https://aiatlasgraph.com/t/hypothesistesting.md)

## Examples

- PL: Schemat danych · asercje (Great Expectations) · rozjazd danych treningowych i produkcyjnych
- EN: Data schema · assertions (Great Expectations) · training/serving skew

## Related topics

Untyped, symmetric "see also" links.

- [Monitoring produkcyjny (Monitoring and observability)](https://aiatlasgraph.com/t/monitoring.md)

## Sources

- [Data Validation for Machine Learning](<https://research.google/pubs/data-validation-for-machine-learning/>) `breck-data-validation-2019` · by Eric Breck, Marty Zinkevich, Neoklis Polyzotis, Steven Whang, Sudip Roy
- [GX Core overview — Great Expectations (documentation)](<https://docs.greatexpectations.io/docs/core/introduction/gx_overview>) `great-expectations-docs` · by Great Expectations (strona nie podaje autora)

---

AI Atlas revision 122 (2026-10-30) · HTML: https://aiatlasgraph.com/t/datavalidation · index: https://aiatlasgraph.com/llms.txt · everything: https://aiatlasgraph.com/llms-full.txt · updated 2026-10-30
