source: prdatasets/mnist8.m @ 135

Last change on this file since 135 was 132, checked in by bduin, 5 years ago
File size: 820 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
16% Faculty EWI, Delft University of Technology
17% P.O. Box 5031, 2600 GA Delft, The Netherlands
18
19function [a,b] = mnist8
20
21prdatasets(mfilename,1);
22a = pr_dataset('mnist8');
23if nargout == 2
24  b = a(60001:end,:);
25  b = setname(b,'mnist8_test');
26  a = setname(a(1:60000,:),'mnist8_train');
27else
28  a = setname(a,'mnist8');
29end
30
Note: See TracBrowser for help on using the repository browser.