#NEWLINE# def test_predict( self ) : #NEWLINE# #INDENT# m = GPy . models . bayesian_gplvm_minibatch . BayesianGPLVMMiniBatch ( self . Y , self . Q , X_variance = False , missing_data = True , stochastic = True , batchsize = self . Y . shape [ 1 ] ) #NEWLINE# m [ : ] = self . m_full [ : ] #NEWLINE# np . testing . assert_almost_equal ( m . log_likelihood ( ) , self . m_full . log_likelihood ( ) , 7 ) #NEWLINE# np . testing . assert_allclose ( m . gradient , m . m_full . gradient ) #NEWLINE# assert m . checkgrad ( )