def buildSubsamplingNetwork():
 n = FeedForwardNetwork()
 n.addInputModule(LinearLayer(6, 'in'))
 n.addOutputModule(LinearLayer(1, 'out'))
 n.addConnection(SubsamplingConnection(n['in'], n['out'], inSliceTo=4))
 n.addConnection(SubsamplingConnection(n['in'], n['out'], inSliceFrom=4))
 n.sortModules()
 return n

def buildSubsamplingNetwork ( ) : n = FeedForwardNetwork ( ) n . addInputModule ( LinearLayer ( 6 , 'in' ) ) n . addOutputModule ( LinearLayer ( 1 , 'out' ) ) n . addConnection ( SubsamplingConnection ( n [ 'in' ] , n [ 'out' ] , inSliceTo = 4 ) ) n . addConnection ( SubsamplingConnection ( n [ 'in' ] , n [ 'out' ] , inSliceFrom = 4 ) ) n . sortModules ( ) return n
builds a network with subsampling connections .