#NEWLINE# def _param_grad_helper( self , dL_dK , X , X2 , target ) : #NEWLINE# #INDENT# 'Derivative of the covariance with respect to the parameters.' #NEWLINE# self . _K_computations ( X , X2 ) #NEWLINE# self . _dK_computations ( dL_dK ) #NEWLINE# if ( X2 == None ) : #NEWLINE# #INDENT# gmapping = self . mapping . df_dtheta ( ( 2 * self . _dL_dl [ : , None ] ) , X ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# gmapping = self . mapping . df_dtheta ( self . _dL_dl [ : , None ] , X ) #NEWLINE# gmapping += self . mapping . df_dtheta ( self . _dL_dl_two [ : , None ] , dL_dK ) #NEWLINE# #UNINDENT# target += np . hstack ( [ ( dL_dK * self . _K_dvar ) . sum ( ) , gmapping ] )