[null,null,["Last updated 2023-10-06 UTC."],[],[],null,["# tf.keras.models.model_from_yaml\n\n\u003cbr /\u003e\n\n|-----------------------------------------------------------------------------------------------------------------------|\n| [View source on GitHub](https://github.com/keras-team/keras/tree/v2.14.0/keras/saving/legacy/model_config.py#L74-L97) |\n\nParses a yaml model configuration file and returns a model instance. \n\n tf.keras.models.model_from_yaml(\n yaml_string, custom_objects=None\n )\n\n| **Note:** Since TF 2.6, this method is no longer supported and will raise a RuntimeError.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Args ---- ||\n|------------------|---------------------------------------------------------------------------------------------------------------------|\n| `yaml_string` | YAML string or open file encoding a model configuration. |\n| `custom_objects` | Optional dictionary mapping names (strings) to custom classes or functions to be considered during deserialization. |\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Returns ------- ||\n|---|---|\n| A Keras model instance (uncompiled). ||\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Raises ------ ||\n|----------------|-------------------------------------------------|\n| `RuntimeError` | announces that the method poses a security risk |\n\n\u003cbr /\u003e"]]