powered by
Constructor function for layers. You shouldn't generally need to use this. Instead, consider using individual functions such as dense.
dense
new_layer(cl, ...)
A construct with class "ruta_layer"
"ruta_layer"
Character string specifying class of layer (e.g. "ruta_layer_dense"), which will be used to call the corresponding methods
"ruta_layer_dense"
Other parameters (usually units, activation)
units
activation
my_layer <- new_layer("dense", 30, "tanh") # Equivalent: my_layer <- dense(30, "tanh")[[1]]
Run the code above in your browser using DataLab