Wrapper for a dense/fully-connected layer.

dense(units, activation = "linear")

Arguments

units

Number of units

activation

Optional, string indicating activation function (linear by default)

Value

A construct with class "ruta_layer"

See also

Other neural layers: input, output

Examples

dense(30, "tanh")
#> Ruta network. Structure: #> dense(30 units) - tanh