Metamorphic testing · Question 41 of 60
An image classifier has correctly identified a photo as "cat". Which follow-up test cases result from an invariance relation?
2 answers are correct. Hard
Show answer
Answer
- B Classify the photo again with slight noise added; "cat" is expected again
- D Classify the photo again slightly brightened; "cat" is expected again
Explanation
Invariance means that outputs remain stable under perturbations of the input. Follow-up test cases with slightly changed inputs whose expected result is the same are derived from the passed source test case. A photo of a dog is not a perturbation of the source case, and an increasing confidence does not follow from any invariance relation.