changeset 822:a7dc8b28f4bc

deleting mnist_factory
author James Bergstra <bergstrj@iro.umontreal.ca>
date Thu, 10 Sep 2009 10:30:21 -0400
parents 390d8c5a1fee
children e53c06901f8f
files pylearn/datasets/MNIST.py
diffstat 1 files changed, 0 insertions(+), 12 deletions(-) [+]
line wrap: on
line diff
--- a/pylearn/datasets/MNIST.py	Tue Jun 02 20:21:35 2009 -0400
+++ b/pylearn/datasets/MNIST.py	Thu Sep 10 10:30:21 2009 -0400
@@ -67,15 +67,3 @@
 def first_10k():
     return train_valid_test(ntrain=10000, nvalid=2000, ntest=2000)
 
-#old method from factory idea days... delete when ready -JB20090119
-def mnist_factory(variant="", ntrain=None, nvalid=None, ntest=None):
-    if variant=="":
-        return full()
-    elif variant=="1k":
-        return first_1k()
-    elif variant=="10k":
-        return first_10k()
-    elif variant=="custom":
-        return train_valid_test(ntrain=ntrain, nvalid=nvalid, ntest=ntest)
-    else:
-        raise Exception('Unknown MNIST variant', variant)