#NEWLINE# def _compute_weights( self , X , rs ) : #NEWLINE# #INDENT# 'Generate MLP weights' #NEWLINE# weights = self . _get_user_components ( 'weights' ) #NEWLINE# if ( weights is None ) : #NEWLINE# #INDENT# n_features = X . shape [ 1 ] #NEWLINE# hw_size = ( n_features , self . n_hidden ) #NEWLINE# weights = rs . normal ( size = hw_size ) #NEWLINE# #UNINDENT# self . components_ [ 'weights' ] = self