source: prdatasets/mnist8.m @ 133

Last change on this file since 133 was 132, checked in by bduin, 5 years ago
File size: 820 bytes
RevLine 
[117]1%MNIST8 70000 normalised digits given by 8x8 pixels (features) in 10 classes
2%
[126]3%    [TRAIN,TEST] = mnist8
4%     TRAIN_TEST  = mnist8
[117]5%
[126]6% Load the MNIST8 dataset. These are the original MNIST digits, normalised
[117]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
[132]15% Copyright: R.P.W. Duin
[117]16% Faculty EWI, Delft University of Technology
17% P.O. Box 5031, 2600 GA Delft, The Netherlands
18
[126]19function [a,b] = mnist8
[117]20
21prdatasets(mfilename,1);
22a = pr_dataset('mnist8');
[126]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
[117]30
Note: See TracBrowser for help on using the repository browser.