Print a summary of a Keras model
# S3 method for keras.engine.training.Model
summary(object, ...)# S3 method for keras.engine.training.Model
format(
x,
line_length = getOption("width"),
positions = NULL,
expand_nested = FALSE,
show_trainable = FALSE,
...
)
# S3 method for keras.engine.training.Model
print(x, ...)
Keras model instance
for summary() and print(), passed on to format(). For
format(), passed on to model$summary().
Total length of printed lines
Relative or absolute positions of log elements in each line.
If not provided, defaults to c(0.33, 0.55, 0.67, 1.0).
Whether to expand the nested models. If not provided,
defaults to FALSE.
Whether to show if a layer is trainable. If not
provided, defaults to FALSE.
format() returns a length 1 character vector. print() returns the
model object invisibly. summary() returns the output of format()
invisibly after printing it.
Other model functions:
compile.keras.engine.training.Model(),
evaluate.keras.engine.training.Model(),
evaluate_generator(),
fit.keras.engine.training.Model(),
fit_generator(),
get_config(),
get_layer(),
keras_model_sequential(),
keras_model(),
multi_gpu_model(),
pop_layer(),
predict.keras.engine.training.Model(),
predict_generator(),
predict_on_batch(),
predict_proba(),
train_on_batch()