# HG changeset patch # User James Bergstra # Date 1252593021 14400 # Node ID a7dc8b28f4bcffd3d84b5cdc52be50e434a26fd0 # Parent 390d8c5a1fee04b81bee86dd2e0f8255571fd268 deleting mnist_factory diff -r 390d8c5a1fee -r a7dc8b28f4bc pylearn/datasets/MNIST.py --- 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)