Access subnetworks of a network

# S3 method for rutaNetwork
[(net, index)

Arguments

net

A "rutaNetwork" object

index

An integer vector of indices of layers to be extracted

Value

A "rutaNetwork" object containing the specified layers.

Examples

(input() + dense(30))[2]
#> Ruta network. Structure: #> dense(30 units) - linear
long = input() + dense(1000) + dense(100) + dense(1000) + output() short = long[c(1, 3, 5)]