dense: Create a fully-connected neural layer

View source: R/layers.R

denseR Documentation

Create a fully-connected neural layer

Description

Wrapper for a dense/fully-connected layer.

Usage

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

ruta documentation built on Jan. 9, 2023, 1:20 a.m.