extractMNIST: extractMNIST

Description Usage Arguments Value Examples

View source: R/extractMNIST.R

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

1
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

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

QuantumOps documentation built on Feb. 3, 2020, 5:07 p.m.