load_mnist {simpleMLP}R Documentation

Load Training Data

Description

Loads MNIST training, validation, and test data and generates one hot encodings for the targets. The test set proportion is not specified and is instead the remainder from the test and validation proportions.

Usage

load_mnist(train_prop = 0.8, validate_prop = 0.1)

Arguments

train_prop

proportion of the data used for the training set

validate_prop

proportion of the data used for the validation set

Value

list of training and validation data and targets

Examples


mnist <- load_mnist(0.8, 0.1)
train_data <- mnist[1]
train_target <- mnist[2]
validate_data <- mnist[3]
validate_target <- mnist[4]
test_data <- mnist[5]
test_target <- mnist[6]


[Package simpleMLP version 1.0.0 Index]