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(...)
Zero or more objects of class "ruta_layer"
A construct with class "ruta_network"
# NOT RUN {
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")
# }
Run the code above in your browser using DataLab