Save and re-load models configurations as JSON. Note that the representation does not include the weights, only the architecture.

model_to_json(object)

model_from_json(json, custom_objects = NULL)

Arguments

object

Model object to save

json

JSON with model configuration

custom_objects

Optional named list mapping names to custom classes or functions to be considered during deserialization.

See also