new_network: Sequential network constructor

View source: R/network.R

new_networkR Documentation

Sequential network constructor

Description

Constructor function for networks composed of several sequentially placed layers. You shouldn't generally need to use this. Instead, consider concatenating several layers with +.ruta_network.

Usage

new_network(...)

Arguments

...

Zero or more objects of class "ruta_layer"

Value

A construct with class "ruta_network"

Examples

my_network <- new_network(
  new_layer("input", 784, "linear"),
  new_layer("dense",  32, "tanh"),
  new_layer("dense", 784, "sigmoid")
)

# Instead, consider using
my_network <- input() + dense(32, "tanh") + output("sigmoid")

fdavidcl/ruta documentation built on July 5, 2023, 6:32 p.m.