{"record":{"id":"15a72326ecd381ed","repo":"keras-team/keras","slug":"invalid-epsilon-configuration-expected-a-float","errorCode":null,"errorMessage":"Invalid `epsilon` configuration. Expected a float. Received: epsilon={_epsilon}","messagePattern":"Invalid `epsilon` configuration\\. Expected a float\\. Received: epsilon=(.+?)","errorType":"validation","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"keras/src/backend/config.py","lineNumber":312,"sourceCode":"\n# Attempt to read Keras config file.\n_config_path = os.path.expanduser(os.path.join(_KERAS_DIR, \"keras.json\"))\nif os.path.exists(_config_path):\n    try:\n        with open(_config_path) as f:\n            _config = json.load(f)\n    except ValueError:\n        _config = {}\n    _floatx = _config.get(\"floatx\", floatx())\n    if _floatx not in {\"float16\", \"float32\", \"float64\"}:\n        raise ValueError(\n            \"Invalid `floatx` configuration. \"\n            \"Expected one of {'float16', 'float32', 'float64'}. \"\n            f\"Received: floatx={_floatx}\"\n        )\n    _epsilon = _config.get(\"epsilon\", epsilon())\n    if not isinstance(_epsilon, float):\n        raise ValueError(\n            \"Invalid `epsilon` configuration. \"\n            \"Expected a float. \"\n            f\"Received: epsilon={_epsilon}\"\n        )\n    _backend = _config.get(\"backend\", _BACKEND)\n    _image_data_format = _config.get(\"image_data_format\", image_data_format())\n    if _image_data_format not in {\"channels_last\", \"channels_first\"}:\n        raise ValueError(\n            \"Invalid `image_data_format` configuration. \"\n            \"Expected one of {'channels_last', 'channels_first'}. \"\n            f\"Received: image_data_format={_image_data_format}\"\n        )\n    _nnx_enabled_config = _config.get(\"nnx_enabled\", _NNX_ENABLED)\n\n    # Apply basic configs that don't cause circular import\n    set_floatx(_floatx)\n    _NNX_ENABLED = _nnx_enabled_config\n    set_epsilon(_epsilon)","sourceCodeStart":294,"sourceCodeEnd":330,"githubUrl":"https://github.com/keras-team/keras/blob/7a34a03db60bf60042242d6a556fc3be119046a5/keras/src/backend/config.py#L294-L330","documentation":"Error \"Invalid `epsilon` configuration. Expected a float. Received: epsilon={_epsilon}\" thrown in keras-team/keras.","triggerScenarios":"Thrown at keras/src/backend/config.py:312 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"}