reservoirpy.ops.merge#
- class reservoirpy.ops.merge( )[source]#
Merge different
ModelorNodeinstances into a singleModelinstance.Nodeinstances contained in the models to merge will be gathered in a single model, along with all previously defined connections between them, if they exists.You can also perform this operation using the
&operator:model = (node1 >> node2) & (node1 >> node3))
This is equivalent to:
model = merge((node1 >> node2), (node1 >> node3))
The in-place operator can also be used:
model &= other_model
Which is equivalent to:
model.update_graph(other_model.nodes, other_model.edges)