From 80aea4412ec32a0a5142ac5e46f6e0ec19d03ed9 Mon Sep 17 00:00:00 2001 From: Max Zwiessele Date: Mon, 29 Feb 2016 14:33:33 +0000 Subject: [PATCH] [svgp] python 3.x fix for next --- GPy/core/svgp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GPy/core/svgp.py b/GPy/core/svgp.py index a678a1fd..916952f2 100644 --- a/GPy/core/svgp.py +++ b/GPy/core/svgp.py @@ -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):