layers() describes a specification of the layers in neural network as a string with the number of hidden units in each layer separated by an underscore, e.g "40_20" specifies a two-layer network with 40 units in the first layer and 20 in the second.

layers(values = values_layers)

values_layers

Format

An object of class character of length 8.

Arguments

values

The possible layer specifications to use.

Value

A function of class 'qual_param' and 'param'.

Examples

layers(c("10", "40_20", "50_30_10"))
#> Neural network layer specification  (qualitative)
#> 3 possible value include:
#> '10', '40_20' and '50_30_10'