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

Other neural layers: conv(), dropout(), input(), layer_keras(), output(), variational_block()

Examples

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