Update dataset.py
fix to function name
This commit is contained in:
parent
05e5f6048d
commit
1da99ab2e7
@ -94,7 +94,7 @@ class MNISTDataProvider(DataProvider):
|
|||||||
|
|
||||||
def __randomize(self):
|
def __randomize(self):
|
||||||
assert isinstance(self.x, numpy.ndarray)
|
assert isinstance(self.x, numpy.ndarray)
|
||||||
return numpy.random.permute(numpy.arange(0, self.x.shape[0]))
|
return numpy.random.permutation(numpy.arange(0, self.x.shape[0]))
|
||||||
|
|
||||||
def next(self):
|
def next(self):
|
||||||
|
|
||||||
@ -164,7 +164,7 @@ class FuncDataProvider(DataProvider):
|
|||||||
|
|
||||||
def __randomize(self):
|
def __randomize(self):
|
||||||
assert isinstance(self.x, numpy.ndarray)
|
assert isinstance(self.x, numpy.ndarray)
|
||||||
return numpy.random.permute(numpy.arange(0, self.x.shape[0]))
|
return numpy.random.permutation(numpy.arange(0, self.x.shape[0]))
|
||||||
|
|
||||||
def __iter__(self):
|
def __iter__(self):
|
||||||
return self
|
return self
|
||||||
|
Loading…
Reference in New Issue
Block a user