{"record":{"id":"4bc7adf9f9f3edcd","repo":"keras-team/keras","slug":"all-features-referenced-in-the-crosses-argument","errorCode":null,"errorMessage":"All features referenced in the `crosses` argument should be present in the `features` dict. Received unknown features: {cross}","messagePattern":"All features referenced in the `crosses` argument should be present in the `features` dict\\. Received unknown features: (.+?)","errorType":"validation","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"keras/src/layers/preprocessing/feature_space.py","lineNumber":425,"sourceCode":"        self.crosses = []\n        if crosses:\n            feature_set = set(features.keys())\n            for cross in crosses:\n                if isinstance(cross, dict):\n                    cross = serialization_lib.deserialize_keras_object(cross)\n                if isinstance(cross, Cross):\n                    self.crosses.append(cross)\n                else:\n                    if not crossing_dim:\n                        raise ValueError(\n                            \"When specifying `crosses`, the argument \"\n                            \"`crossing_dim` \"\n                            \"(dimensionality of the crossing space) \"\n                            \"should be specified as well.\"\n                        )\n                    for key in cross:\n                        if key not in feature_set:\n                            raise ValueError(\n                                \"All features referenced \"\n                                \"in the `crosses` argument \"\n                                \"should be present in the `features` dict. \"\n                                f\"Received unknown features: {cross}\"\n                            )\n                    self.crosses.append(Cross(cross, crossing_dim=crossing_dim))\n        self.crosses_by_name = {cross.name: cross for cross in self.crosses}\n\n        if output_mode not in {\"dict\", \"concat\"}:\n            raise ValueError(\n                \"Invalid value for argument `output_mode`. \"\n                \"Expected one of {'dict', 'concat'}. \"\n                f\"Received: output_mode={output_mode}\"\n            )\n        self.output_mode = output_mode\n\n        self.inputs = {\n            name: self._feature_to_input(name, value)","sourceCodeStart":407,"sourceCodeEnd":443,"githubUrl":"https://github.com/keras-team/keras/blob/7a34a03db60bf60042242d6a556fc3be119046a5/keras/src/layers/preprocessing/feature_space.py#L407-L443","documentation":"Error \"All features referenced in the `crosses` argument should be present in the `features` dict. Received unknown features: {cross}\" thrown in keras-team/keras.","triggerScenarios":"Thrown at keras/src/layers/preprocessing/feature_space.py:425 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"}