#NEWLINE# def test_Precomputed( self ) : #NEWLINE# #INDENT# Xall = np . concatenate ( [ self . X , self . X2 ] ) #NEWLINE# cov = np . dot ( Xall , Xall . T ) #NEWLINE# X = np . arange ( self . N ) . reshape ( 1 , self . N ) #NEWLINE# X2 = np . arange ( self . N , ( ( 2 * self . N ) + 10 ) ) . reshape ( 1 , ( self . N + 10 ) ) #NEWLINE# k = GPy . kern . Precomputed ( 1 , cov ) #NEWLINE# k . randomize ( ) #NEWLINE# self . assertTrue ( check_kernel_gradient_functions ( k , X = X , X2 = X2 , verbose = verbose ) )