Draw a neural network

# S3 method for ruta_network
plot(x, ...)

Arguments

x

A "ruta_network" object

...

Additional parameters for style. Available parameters:

  • bg: Color for the text over layers

  • fg: Color for the background of layers

  • log: Use logarithmic scale

Examples

net <-
  input() +
  dense(1000, "relu") + dropout() +
  dense(100, "tanh") +
  dense(1000, "relu") + dropout() +
  output("sigmoid")
plot(net, log = TRUE, fg = "#30707a", bg = "#e0e6ea")