'Returns a yaml string containing the network configuration.
To load a network from a yaml save file, use
`keras.models.model_from_yaml(yaml_string, custom_objects={})`.
`custom_objects` should be a dictionary mapping
the names of custom losses / layers / etc to the corresponding
functions / classes.
# Arguments
**kwargs: Additional keyword arguments
to be passed to `yaml.dump()`.
# Returns
A YAML string.'

def to_yaml(self, **kwargs):

    return yaml.dump(self._updated_config(), **kwargs)
