source: prdatasets/mnist8.m @ 141

Last change on this file since 141 was 140, checked in by bduin, 5 years ago
File size: 831 bytes
Line 
1%MNIST8 70000 normalised digits given by 8x8 pixels (features) in 10 classes
2%
3%    [TRAIN,TEST] = mnist8
4%     TRAIN_TEST  = mnist8
5%
6% Load the MNIST8 dataset. These are the original MNIST digits, normalised
7% such that they fit exactly in images of 8x8 pixels. The first 60000 are
8% the original training set, the last 10000 are the original test set.
9%
10% REFERENCE
11% <a href="http://yann.lecun.com/exdb/mnist/" The MNIST website</a>
12%
13% See also DATASETS, PRDATASETS
14
15% Copyright: R.P.W. Duin, r.p.w.duin@37steps.com
16% Faculty EWI, Delft University of Technology
17% P.O. Box 5031, 2600 GA Delft, The Netherlands
18
19function [a,b] = mnist8
20
21a = pr_getdata([],30);
22if nargout == 2
23  b = a(60001:end,:);
24  b = setname(b,'MNIST8_Test');
25  a = setname(a(1:60000,:),'MNIST8_Train');
26else
27  a = setname(a,'MNIST8 Reduced Digits');
28end
29
Note: See TracBrowser for help on using the repository browser.