Created
February 19, 2017 15:21
-
-
Save yamano357/b2b95ba8493e073ac98a45832d1646af to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
keras <- reticulate::import(module = "keras") | |
model <- keras$models$Sequential( | |
list( | |
keras$layers$Dense(output_dim = 32L, input_dim = 784L), | |
keras$layers$Activation(activation = "relu"), | |
keras$layers$Dense(output_dim = 10), | |
keras$layers$Activation(activation = "softmax") | |
) | |
) | |
DiagrammeR::grViz( | |
diagram = keras$utils$visualize_util$model_to_dot( | |
model = model, show_shapes = TRUE | |
)$create(prog = "dot", format = "dot") | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment