19.3 Prerequisites

Packages

# Helper packages
library(dplyr)    # for data manipulation
library(ggplot2)  # for data visualization

# Modeling packages
library(h2o)  # for fitting autoencoders
h2o.no_progress()  # turn off progress bars
h2o.init(max_mem_size = "5g")  # initialize H2O instance

Data

mnist <- dslabs::read_mnist()
names(mnist)
## [1] "train" "test"