Changeset 126
- Timestamp:
- 07/18/18 13:25:06 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
prdatasets/mnist8.m
r117 r126 1 1 %MNIST8 70000 normalised digits given by 8x8 pixels (features) in 10 classes 2 2 % 3 % A = MNIST8 3 % [TRAIN,TEST] = mnist8 4 % TRAIN_TEST = mnist8 4 5 % 5 % Load the dataset in A. These are the original MNIST digits, normalised6 % Load the MNIST8 dataset. These are the original MNIST digits, normalised 6 7 % such that they fit exactly in images of 8x8 pixels. The first 60000 are 7 8 % the original training set, the last 10000 are the original test set. … … 16 17 % P.O. Box 5031, 2600 GA Delft, The Netherlands 17 18 18 function a= mnist819 function [a,b] = mnist8 19 20 20 21 prdatasets(mfilename,1); 21 22 a = pr_dataset('mnist8'); 22 a = setname(a,'MNIST8'); 23 if nargout == 2 24 b = a(60001:end,:); 25 b = setname(b,'mnist8_test'); 26 a = setname(a(1:60000,:),'mnist8_train'); 27 else 28 a = setname(a,'mnist8'); 29 end 23 30
Note: See TracChangeset
for help on using the changeset viewer.