Learn R Programming

QuantumOps (version 3.0.1)

extractMNIST: extractMNIST

Description

Opens the MNIST training data and label files (not provided with package) and extracts the images and labels and returns them in a list

Usage

extractMNIST(data,labels,s,centercrop=TRUE)

Arguments

data

String of path to file containing MNIST training images

labels

String of path to file containing MNIST training labels

s

Number of samples and labels to extract from file

centercrop

Boolean indicating whether the images should be centercropped to contain only 256 points

Value

List containing matrix of image data and array of training labels

Examples

Run this code
# NOT RUN {
 
# }
# NOT RUN {
 extractMNIST("train-images.idx3-ubyte","train-labels.idx1-ubyte",2)
 
# }

Run the code above in your browser using DataLab