#NEWLINE# def ising_b( self , for_sampling = False ) : #NEWLINE# #INDENT# '\n        .. todo::\n\n            WRITEME\n        ' #NEWLINE# if ( not hasattr ( self , 'sampling_b_stdev' ) ) : #NEWLINE# #INDENT# self . sampling_b_stdev = None #NEWLINE# #UNINDENT# if ( for_sampling and ( self . sampling_b_stdev is not None ) ) : #NEWLINE# #INDENT# return self . noisy_sampling_b #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( self . layer_above is not None ) : #NEWLINE# #INDENT# return ( ( ( 0.5 * self . boltzmann_b ) + ( 0.25 * self . W . sum ( axis = 0 ) ) ) + ( 0.25 * self . layer_above . W . sum ( axis = 1 ) ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return ( ( 0.5 * self . boltzmann_b ) + ( 0.25 * self . W . sum ( axis = 0 ) ) )