sub-.ruta_network: Access subnetworks of a network

[.ruta_networkR Documentation

Access subnetworks of a network

Description

Access subnetworks of a network

Usage

## S3 method for class 'ruta_network'
net[index]

Arguments

net

A "ruta_network" object

index

An integer vector of indices of layers to be extracted

Value

A "ruta_network" object containing the specified layers.

Examples

(input() + dense(30))[2]
long <- input() + dense(1000) + dense(100) + dense(1000) + output()
short <- long[c(1, 3, 5)]

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