save_model_weights | R Documentation |
.weights.h5
file.Saves all layer weights to a .weights.h5
file.
save_model_weights(model, filepath, overwrite = FALSE)
model |
A keras Model object |
filepath |
string.
Path where to save the model. Must end in |
overwrite |
Whether we should overwrite any existing model at the target location, or instead ask the user via an interactive prompt. |
This is called primarily for side effects. model
is returned,
invisibly, to enable usage with the pipe.
Other saving and loading functions:
export_savedmodel.keras.src.models.model.Model()
layer_tfsm()
load_model()
load_model_weights()
register_keras_serializable()
save_model()
save_model_config()
with_custom_object_scope()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.