#NEWLINE# def setUp( self ) : #NEWLINE# #INDENT# from GPy.core.parameterization.variational import NormalPosterior #NEWLINE# ( N , M , Q ) = ( 100 , 20 , 3 ) #NEWLINE# X = np . random . randn ( N , Q ) #NEWLINE# X_var = ( np . random . rand ( N , Q ) + 0.01 ) #NEWLINE# self . Z = np . random . randn ( M , Q ) #NEWLINE# self . qX = NormalPosterior ( X , X_var ) #NEWLINE# self . w1 = np . random . randn ( N ) #NEWLINE# self . w2 = np . random . randn ( N , M ) #NEWLINE# self . w3 = np . random . randn ( M , M ) #NEWLINE# self . w3 = self . w3 #NEWLINE# self . w3n = np . random . randn ( N , M , M ) #NEWLINE# self . w3n = ( self . w3n + np . swapaxes ( self . w3n , 1 , 2 ) )