#NEWLINE# def update_gradients_full( self , dL_dK , X , X2 = None ) : #NEWLINE# #INDENT# if ( X2 is None ) : #NEWLINE# #INDENT# self . variance . gradient = np . diagonal ( self ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . variance . gradient = 0.0