From 1da99ab2e710c6dd451c462a5dad83dd46d8bd3f Mon Sep 17 00:00:00 2001
From: Pawel Swietojanski
Date: Tue, 29 Sep 2015 20:07:57 +0100
Subject: [PATCH] Update dataset.py
fix to function name
---
mlp/dataset.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/mlp/dataset.py b/mlp/dataset.py
index 2c7ff12..f5bed6a 100644
--- a/mlp/dataset.py
+++ b/mlp/dataset.py
@@ -94,7 +94,7 @@ class MNISTDataProvider(DataProvider):
def __randomize(self):
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):
@@ -164,7 +164,7 @@ class FuncDataProvider(DataProvider):
def __randomize(self):
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):
return self