[svgp] python 3.x fix for next

This commit is contained in:
Max Zwiessele 2016-02-29 14:33:33 +00:00
parent 3dd3b1dd6a
commit 80aea4412e

View file

@ -89,7 +89,7 @@ class SVGP(SparseGP):
"""
Return a new batch of X and Y by taking a chunk of data from the complete X and Y
"""
i = self.slicer.next()
i = next(self.slicer)
return self.X_all[i], self.Y_all[i]
def stochastic_grad(self, parameters):