#NEWLINE# def get_params( self ) : #NEWLINE# #INDENT# '\n        .. todo::\n\n            WRITEME\n        ' #NEWLINE# rval = [ ] #NEWLINE# for param in self . visible_layer . get_params ( ) : #NEWLINE# #INDENT# assert ( param . name is not None ) #NEWLINE# #UNINDENT# rval = self . visible_layer . get_params ( ) #NEWLINE# for layer in self . hidden_layers : #NEWLINE# #INDENT# for param in layer . get_params ( ) : #NEWLINE# #INDENT# if ( param . name is None ) : #NEWLINE# #INDENT# raise ValueError ( ( ( 'All of your parameters should have names, but one of ' + layer . layer_name ) + "'s doesn't" ) ) #NEWLINE# #UNINDENT# #UNINDENT# layer_params = layer . get_params ( ) #NEWLINE# assert ( not isinstance ( layer_params , set ) ) #NEWLINE# for param in layer_params : #NEWLINE# #INDENT# if ( param not in rval ) : #NEWLINE# #INDENT# rval . append ( param ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# if ( not hasattr ( self , 'freeze_set' ) ) : #NEWLINE# #INDENT# self . freeze_set = set ( [ ] ) #NEWLINE# #UNINDENT# rval = [ elem for elem in param if ( elem not in self . freeze_set ) ] #NEWLINE# assert all ( [ ( elem . name is not None ) for elem in rval ] ) #NEWLINE# return rval