{"record":{"id":"1414f285fc95024d","repo":"keras-team/keras","slug":"unknown-interpolation-interpolation-expected-1414f2","errorCode":null,"errorMessage":"Unknown `interpolation` {interpolation}. Expected of one {self._SUPPORTED_INTERPOLATION}.","messagePattern":"Unknown `interpolation` (.+?)\\. Expected of one (.+?)\\.","errorType":"exception","errorClass":"NotImplementedError","httpStatus":null,"severity":"error","filePath":"keras/src/layers/preprocessing/image_preprocessing/random_perspective.py","lineNumber":86,"sourceCode":"        super().__init__(data_format=data_format, **kwargs)\n        self._set_factor(factor)\n        self.scale = scale\n        self.fill_value = fill_value\n        self.interpolation = interpolation\n        self.seed = seed\n        self.generator = SeedGenerator(seed)\n        self.supports_jit = False\n\n        if scale < 0.0 or scale > 1.0:\n            raise ValueError(\n                \"The `scale` argument should be a number \"\n                \"in the range \"\n                f\"[0,1]. \"\n                f\"Received: scale={scale}\"\n            )\n\n        if interpolation not in self._SUPPORTED_INTERPOLATION:\n            raise NotImplementedError(\n                f\"Unknown `interpolation` {interpolation}. Expected of one \"\n                f\"{self._SUPPORTED_INTERPOLATION}.\"\n            )\n\n        if self.data_format == \"channels_first\":\n            self.height_axis = -2\n            self.width_axis = -1\n            self.channel_axis = -3\n        else:\n            self.height_axis = -3\n            self.width_axis = -2\n            self.channel_axis = -1\n\n    def get_random_transformation(self, data, training=True, seed=None):\n        if not training:\n            return None\n\n        if isinstance(data, dict):","sourceCodeStart":68,"sourceCodeEnd":104,"githubUrl":"https://github.com/keras-team/keras/blob/7a34a03db60bf60042242d6a556fc3be119046a5/keras/src/layers/preprocessing/image_preprocessing/random_perspective.py#L68-L104","documentation":"Error \"Unknown `interpolation` {interpolation}. Expected of one {self._SUPPORTED_INTERPOLATION}.\" thrown in keras-team/keras.","triggerScenarios":"Thrown at keras/src/layers/preprocessing/image_preprocessing/random_perspective.py:86 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"7a34a03db60bf60042242d6a556fc3be119046a5","analyzedAt":"2026-08-25T21:25:25.994Z","schemaVersion":2},"datasetVersion":"2026-08-26T02:17:13.382Z"}