summary.keras.engine.training.Model | R Documentation |
Print a summary of a Keras model
## S3 method for class 'keras.engine.training.Model' summary(object, ...) ## S3 method for class 'keras.engine.training.Model' format( x, line_length = width - (11L * show_trainable), positions = NULL, expand_nested = FALSE, show_trainable = x$built && as.logical(length(x$non_trainable_weights)), ..., compact = TRUE, width = getOption("width") ) ## S3 method for class 'keras.engine.training.Model' print(x, ...)
object, x |
Keras model instance |
... |
for |
line_length |
Total length of printed lines |
positions |
Relative or absolute positions of log elements in each line.
If not provided, defaults to |
expand_nested |
Whether to expand the nested models. If not provided,
defaults to |
show_trainable |
Whether to show if a layer is trainable. If not
provided, defaults to |
compact |
Whether to remove white-space only lines from the model
summary. (Default |
width |
the column width to use for printing. |
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()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.