plot.ruta_network: Draw a neural network

View source: R/network_plot.R

plot.ruta_networkR Documentation

Draw a neural network

Description

Draw a neural network

Usage

## S3 method for class '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")

ruta documentation built on Jan. 9, 2023, 1:20 a.m.