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

fdavidcl/ruta documentation built on July 5, 2023, 6:32 p.m.