Constructor function for layers. You shouldn't generally need to use this. Instead, consider using individual functions such as dense.

new_layer(type, units, activation)

Arguments

type

Character string specifying type of layer

units

Amount of units in the layer

activation

Character string specifying activation function

Value

A construct with class "ruta_layer"

Examples

my_layer <- new_layer("dense", 30, "tanh") # Equivalent: my_layer <- dense(30, "tanh")[[1]]