extractMNIST {QuantumOps}R Documentation

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

 ## Not run: 
 extractMNIST("train-images.idx3-ubyte","train-labels.idx1-ubyte",2)
 
## End(Not run)

[Package QuantumOps version 3.0.1 Index]