NastępnyNastępny poradnik
Zagnieżdżona weryfikacja krzyżowa
Techniczne
PODSTAWOWY PRZEWODNIK
Cross-validation estimates how a model or modeling procedure performs on held-out data by repeating train/validation splits.
Posłuchaj tego przewodnikaOpowiadane przez sztuczną inteligencję · ~1 min
It supports model assessment, but the estimate depends on the data, split design and preprocessing.
In k-fold cross-validation, the data are divided into folds; each fold is held out once while the others train the model. Repeated partitions can make an estimate less dependent on one particular split, but do not guarantee greater reliability: dependence between folds, sample size and distribution shift still matter. Preprocessing belongs inside each training fold. Nested cross-validation separates hyperparameter selection from outer evaluation.
K-fold cross-validation rotates which fold is held out for evaluation.
Stratification can preserve approximate class proportions in folds for classification.
Preprocessing should be fitted within each training fold to avoid leakage.
Nested cross-validation separates inner model selection from outer evaluation.
Choose validation procedures based on the data structure and deployment question. AutoML or deep-learning workflows do not universally require one holdout strategy; the method should be justified and reported.
Darmowy newsletter
Trzy zweryfikowane historie AI każdego poranka w dni robocze, napisane prostym angielskim. Bezpłatne na zawsze, bez reklam.
Jedno e‑mail każdego dnia roboczego. Wypisz się jednym kliknięciem. Nigdy nie sprzedajemy ani nie udostępniamy Twojego adresu.
Sprawdź się
Natychmiastowa informacja zwrotna na każde pytanie oraz udostępnialny certyfikat z weryfikowalnym ID po zaliczeniu kursu.
Wspieraj darmową edukację AI. AI Understanding jest organizacją non-profit 501(c)(3) — bez reklam, bez płatnej ściany, zawsze. Przekaż darowiznę
Cross-validation estimates how a model or modeling procedure performs on held-out data by repeating train/validation splits. It supports model assessment, but the estimate depends on the data, split design and preprocessing.
Każde zagięcie służy jako zestaw testowy dokładnie raz w ciągu k rund, więc każda próbka jest testowana jeden raz i trenowana na pozostałych.
Averaging results across folds can reduce dependence on one particular train/test split, but it does not guarantee a reliable estimate; sample size, data dependence and split design still matter.
Tasowanie danych uporządkowanych czasowo powoduje wyciek przyszłości do uczenia, dlatego CV szeregów czasowych wykorzystuje podziały w przód, które trenują tylko na podstawie przeszłych obserwacji.
Nested cross-validation uses inner folds for model selection and outer folds to estimate the performance of that selection process, reducing selection bias.
The guide identifies five- and ten-fold cross-validation as common choices, though the suitable design depends on the data and task.
Ucz się dalej
Wybrano więcej przewodników na ten temat
NastępnyNastępny poradnik
Zagnieżdżona weryfikacja krzyżowa
Techniczne