#NEWLINE# def _compute_centers( self , X , sparse , rs ) : #NEWLINE# #INDENT# 'Generate centers, then compute tau, dF and dN vals' #NEWLINE# super ( GRBFRandomLayer , self ) . _compute_centers ( X , sparse , rs ) #NEWLINE# centers = self . components_ [ 'centers' ] #NEWLINE# sorted_distances = np . sort ( squareform ( pdist ( centers ) ) ) #NEWLINE# self . dF_vals = sorted_distances [ : , ( - 1 ) ] #NEWLINE# self . dN_vals = ( sorted_distances [ : , 1 ] / 100.0 ) #NEWLINE# tauNum = np . log ( ( np . log ( self . grbf_lambda ) / np . log ( ( 1.0 - self . grbf_lambda ) ) ) ) #NEWLINE# tauDenom = np . log ( ( self . dF_vals / self . dN_vals ) ) #NEWLINE# self . tau_vals = ( tauNum / tauDenom ) #NEWLINE# self . _extra_args [ 'taus' ] = self . tau_vals