179 questions
No questions match those filters.
Beyond unit tests, what other kinds of tests belong in an ML CI/CD pipeline?
This is one of the questions in the full AI/ML interview bank. Pro unlocks all 1789 questions; Premium includes the same bank plus the highest daily Practice limit.
See plansA model can pass every unit test and still be unfit to ship, because unit tests check that code executes correctly, not that the resulting model behaves correctly. Data validation tests catch a schema change or a corrupted upstream feed before it trains a model on bad data. A training smoke test — running the full training script on a tiny data subset — catches broken pipelines fast without burning hours on a full run.
The test type most teams skip is the slice, or behavioral, test: evaluating accuracy separately across demographic or business-relevant subgroups instead of trusting a single overall number. A model can hit 90% accuracy overall while sitting at 70% for one subgroup, and an aggregate metric will never surface that. Shadow deployment — running the candidate model on live traffic without acting on its output, then comparing against the current model’s decisions — catches production-only failure modes that offline test sets miss entirely. For any LLM-touching component, adversarial tests covering empty input, very long input, and prompt injection round out the suite; skipping any one of these categories leaves a real failure mode completely untested before launch.