#NEWLINE# def reset( self ) : #NEWLINE# #INDENT# self . feed . reset ( ) #NEWLINE# self . model . setup ( * self . feed . shapes ) #NEWLINE# self . params = [ n_params for p in self . model . params if ( not isinstance ( p , SharedParameter ) ) ] #NEWLINE# self . learn_rule_states = [ self . learn_rule . init_state ( p ) for p in self . params ] #NEWLINE# n_params = np . sum ( [ p . array . size for p in self . params ] ) #NEWLINE# log . info ( 'SGD: Model contains %i parameters.' , n_params ) #NEWLINE# log . info ( 'SGD: %d gradient updates per epoch.' , self . feed . epoch_size )