Changeset 126


Ignore:
Timestamp:
07/18/18 13:25:06 (6 years ago)
Author:
bduin
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • prdatasets/mnist8.m

    r117 r126  
    11%MNIST8 70000 normalised digits given by 8x8 pixels (features) in 10 classes
    22%
    3 %       A = MNIST8
     3%    [TRAIN,TEST] = mnist8
     4%     TRAIN_TEST  = mnist8
    45%
    5 % Load the dataset in A. These are the original MNIST digits, normalised
     6% Load the MNIST8 dataset. These are the original MNIST digits, normalised
    67% such that they fit exactly in images of 8x8 pixels. The first 60000 are
    78% the original training set, the last 10000 are the original test set.
     
    1617% P.O. Box 5031, 2600 GA Delft, The Netherlands
    1718
    18 function a = mnist8
     19function [a,b] = mnist8
    1920
    2021prdatasets(mfilename,1);
    2122a = pr_dataset('mnist8');
    22 a = setname(a,'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
    2330
Note: See TracChangeset for help on using the changeset viewer.