neupy.layers.join

neupy.layers.join(*networks)[source]

Sequentially combines layers and networks into single network. Function will go sequentially over layers/networks and combine output layers from the one network that it picks to the input layers from the next network in the sequence.

Parameters:
*networks

Layers or networks.

Examples

>>> from neupy.layers import *
>>> network = join(
...     Input((28, 28, 1)),
...     Convolution((3, 3, 16)) >> Relu(),
...     Convolution((3, 3, 16)) >> Relu(),
...     Reshape(),
...     Softmax(10),
... )
>>> network
(?, 28, 28, 1) -> [... 7 layers ...] -> (?, 10)