#NEWLINE# def update_gradients_full( self , dL_dK , X , X2 = None ) : #NEWLINE# #INDENT# if ( X2 is None ) : #NEWLINE# #INDENT# self . variance . gradient = np . einsum ( 'ij,ij' , dL_dK , self . fixed_K [ X [ : , 0 ] . astype ( 'int' ) ] [ : , X [ : , 0 ] . astype ( 'int' ) ] ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . variance . gradient = np . einsum ( 'ij,ij' , dL_dK , self . fixed_K [ X [ : , 0 ] . astype ( 'int' ) ] [ : , X2 [ : , 0 ] . astype ( 'int' ) ] )