source: prdatasets/mnist8.m @ 153

Last change on this file since 153 was 150, checked in by bduin, 5 years ago
File size: 808 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
[150]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
[140]21a = pr_getdata([],30);
[126]22if nargout == 2
23  b = a(60001:end,:);
[138]24  b = setname(b,'MNIST8_Test');
25  a = setname(a(1:60000,:),'MNIST8_Train');
[126]26else
[138]27  a = setname(a,'MNIST8 Reduced Digits');
[126]28end
[117]29
Note: See TracBrowser for help on using the repository browser.