chevron: Takes two nodes and applies python operator '>>'

%>>%R Documentation

Takes two nodes and applies python operator >>

Description

A port of the >> "chevron" operator from reservoirpy.

Usage

node1 %>>% node2

Arguments

node1

a Node or a list of Nodes

node2

a Node or a list of Nodes

Value

A node or a list of nodes.

Examples

if(interactive()){
  source <- reservoirnet::createNode("Input")
  reservoir <- reservoirnet::createNode("Reservoir", units = 100, lr=0.1, sr=0.9)
  source %>>% reservoir

  readout <- reservoirnet::createNode("Ridge")
  list(source %>>% reservoir, source) %>>% readout
}

reservoirnet documentation built on April 4, 2023, 5:12 p.m.