reservoirpy.ops.link_feedback#
- class reservoirpy.ops.link_feedback( )[source]#
Create a feedback connection from the
senderto thereceiver. Feedback connections are regular node-to-node connections with a delay of one timestep.If
senderorreceiveris a Model or a list of Nodes or Models, all outputs ofsenderwill be connected as feedback toreceiver.You can also perform this operation using the
<<operator:node1 = node1 << node2 # with feedback from a Model node1 = node1 << (fbnode1 >> fbnode2) # with feedback from a list of nodes or models node1 = node1 << [fbnode1, fbnode2, ...]
You can also use this function to define feedback:
node1 = link_feedback(node1, node2)
- Parameters:
- Returns:
A model instance with all node and connections from
senderandreceiverand with feedback connections fromsendertoreceiver.- Return type:
- Raises:
TypeError – If any of the senders or receivers are not Nodes or Models.