# HG changeset patch # User Pascal Lamblin # Date 1295660457 18000 # Node ID 6ade5b39b773395b35a2194dd62fb94b4f335213 # Parent b14f3d6f5cd44e9cda24fa01637af48c18319cff int8 should be enough to represent digits from 0 to 9 diff -r b14f3d6f5cd4 -r 6ade5b39b773 pylearn/datasets/MNIST.py --- a/pylearn/datasets/MNIST.py Fri Jan 21 17:05:46 2011 -0500 +++ b/pylearn/datasets/MNIST.py Fri Jan 21 20:40:57 2011 -0500 @@ -15,7 +15,7 @@ Returns two matrices: x, y. x has N rows of 784 columns. Each row of x represents the 28x28 grey-scale pixels in raster order. y is a vector of N integers. Each element y[i] is the label of the i'th row of x. - + """ if path is None: path = os.path.join(data_root(), 'mnist','mnist_all.pmat') @@ -24,7 +24,7 @@ rows=dat.getRows(0,n) - return rows[:,0:-1], numpy.asarray(rows[:,-1], dtype='int64') + return rows[:,0:-1], numpy.asarray(rows[:,-1], dtype='int8') #What is the purpose of this fct?