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")
#> Warning: conversion failure on '↓' in 'mbcsToSbcs': dot substituted for <e2>
#> Warning: conversion failure on '↓' in 'mbcsToSbcs': dot substituted for <86>
#> Warning: conversion failure on '↓' in 'mbcsToSbcs': dot substituted for <93>
#> Warning: font metrics unknown for Unicode character U+2193
#> Warning: conversion failure on '↓' in 'mbcsToSbcs': dot substituted for <e2>
#> Warning: conversion failure on '↓' in 'mbcsToSbcs': dot substituted for <86>
#> Warning: conversion failure on '↓' in 'mbcsToSbcs': dot substituted for <93>
#> Warning: font metrics unknown for Unicode character U+2193