load_mnist: Load Training Data

Description Usage Arguments Value Examples

View source: R/nn-mnist.R

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

1
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

1
2
3
4
5
6
7
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]

simpleMLP documentation built on March 28, 2021, 9:07 a.m.