forked from neurodata/SPORF
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mnist-data.R
24 lines (24 loc) · 1016 Bytes
/
mnist-data.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#' A subset of the MNIST dataset for handwritten digit classification
#'
#' A dataset consiting of 10 percent of the MNIST training set and the
#' full test set
#'
#' @docType data
#'
#' @usage data(mnist)
#'
#' @format A list with four items: Xtrain is a training set matrix with 6000 rows (samples) and 784 columns (features),
#' Xtrain is an integer array of corresponding training class labels, Xtest is a test set matrix of 10000 rows and 784
#' columns, and Ytest is the corresponding class labels. Rows in Xtrain and Xtest correspond to different images of digits,
#' and columns correspond to the pixel intensities in each image, obtained by flattening the image pixels in column-major ordering.
#'
#' @keywords datasets
#'
#' @references Y. LeCun, L. Bottou, Y. Bengio, and P. Haffner. "Gradient-based learning applied to document recognition."
#' Proceedings of the IEEE, 86(11):2278-2324, November 1998.
#'
#' @source \href{http://yann.lecun.com/exdb/mnist/}{MNIST}
#'
#' @examples
#' data(mnist)
"mnist"