Here: https://github.com/mnick/scikit-kge/blob/master/skge/base.py#L130
self.batch_size = np.ceil(len(xys) / self.nbatches)
self.batch_size = int(np.ceil(len(xys) / self.nbatches))
In the latest stable version of numpy (1.13.0) np.ceil() returns a float value not int.
Because of this error, my code was crashing with:
TypeError: slice indices must be integers or None or have an index method
Please make the change.
Here: https://github.com/mnick/scikit-kge/blob/master/skge/base.py#L130
self.batch_size = np.ceil(len(xys) / self.nbatches)self.batch_size = int(np.ceil(len(xys) / self.nbatches))In the latest stable version of numpy (1.13.0)
np.ceil()returns a float value not int.Because of this error, my code was crashing with:
Please make the change.