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.

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")