50% off | Unlimited Data & AI Learning

Last chance! 50% off unlimited learning

Sale ends in


simpleMLP (version 1.0.0)

load_mnist: 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

Run this code
# NOT RUN {
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]
# }

Run the code above in your browser using DataLab