#NEWLINE# def setUp( self ) : #NEWLINE# #INDENT# ( N , D ) = ( 100 , 10 ) #NEWLINE# self . X = ( np . linspace ( ( - np . pi ) , ( + np . pi ) , N ) [ : , None ] * np . random . uniform ( ( - 10 ) , 10 , D ) ) #NEWLINE# self . rbf = GPy . kern . RBF ( 2 , active_dims = np . arange ( 0 , 4 , 2 ) ) #NEWLINE# self . rbf . randomize ( ) #NEWLINE# self . linear = GPy . kern . Linear ( 2 , active_dims = ( 3 , 9 ) ) #NEWLINE# self . linear . randomize ( ) #NEWLINE# self . matern = GPy . kern . Matern32 ( 3 , active_dims = np . array ( [ 1 , 7 , 9 ] ) ) #NEWLINE# self . matern . randomize ( ) #NEWLINE# self . sumkern = ( self . rbf + self . linear ) #NEWLINE# self . sumkern += N . matern