# HG changeset patch # User Frederic Bastien # Date 1236098276 18000 # Node ID 6d927441a38f525e9f32ef1b9822c59a2627c23e # Parent 4837aee2235256b23895e82af218b908e40ea6df added pylearn.datasets.MNIST.first_10 and pylearn.datasets.MNIST.first_100. They are usefull to test with small dataset. diff -r 4837aee22352 -r 6d927441a38f pylearn/datasets/MNIST.py --- a/pylearn/datasets/MNIST.py Fri Feb 20 15:08:46 2009 -0500 +++ b/pylearn/datasets/MNIST.py Tue Mar 03 11:37:56 2009 -0500 @@ -53,6 +53,14 @@ def full(): return train_valid_test() +#usefull for test, keep it +def first_10(): + return train_valid_test(ntrain=10, nvalid=10, ntest=10) + +#usefull for test, keep it +def first_100(): + return train_valid_test(ntrain=100, nvalid=100, ntest=100) + def first_1k(): return train_valid_test(ntrain=1000, nvalid=200, ntest=200)