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

See also

Examples

dense(30, "tanh")
#> Network structure: #> dense(30 units) - tanh