#NEWLINE# def __init__( self , blocks , input , output ) : #NEWLINE# #INDENT# super ( NeuralNet , self ) . __init__ ( input , None ) #NEWLINE# self . _blocks = blocks #NEWLINE# self . _params = list ( reduce ( ( lambda x , y : ( x | y ) ) , [ set ( b . parameters ) for b in self . _blocks ] ) ) #NEWLINE# self . _output = output #NEWLINE# self . _cost = None #NEWLINE# self . _error = None #NEWLINE# self . _target = None #NEWLINE# self . _consts = [ ] #NEWLINE# self . _inc_updates = [ ] #NEWLINE# self . _param_updates = [ ]