Tiếp theoHướng dẫn tiếp theo
Xác thực chéo lồng nhau
kỹ thuật
HƯỚNG DẪN cơ bản
Cross-validation estimates how a model or modeling procedure performs on held-out data by repeating train/validation splits.
Nghe hướng dẫn nàyAI thuật lại · ~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.
Bản tin miễn phí
Ba câu chuyện AI đã được xác minh vào mỗi buổi sáng các ngày trong tuần, được viết bằng tiếng Anh đơn giản. Miễn phí mãi mãi, không có quảng cáo.
Một email mỗi ngày trong tuần. Hủy đăng ký trong một cú nhấp chuột. Chúng tôi không bao giờ bán hoặc chia sẻ địa chỉ của bạn.
Tự kiểm tra
Phản hồi tức thì về mọi câu trả lời và chứng chỉ có thể chia sẻ với ID có thể xác minh sau khi bạn vượt qua khóa học.
Hỗ trợ giáo dục AI miễn phí. AI Understanding là tổ chức phi lợi nhuận 501(c)(3) — không bao giờ có quảng cáo, không có tường phí. Hãy quyên góp
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.
Mỗi lần gấp đóng vai trò là tập kiểm tra chính xác một lần trong k vòng, vì vậy mỗi mẫu được kiểm tra một lần duy nhất và được huấn luyện trên phần còn lại.
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.
Việc xáo trộn dữ liệu theo thứ tự thời gian sẽ đưa tương lai vào quá trình đào tạo, vì vậy CV chuỗi thời gian sử dụng các phân tách chuỗi tiến chỉ đào tạo dựa trên các quan sát trong quá khứ.
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.
Tiếp tục học hỏi
Đã chọn thêm hướng dẫn cho chủ đề này
Tiếp theoHướng dẫn tiếp theo
Xác thực chéo lồng nhau
kỹ thuật