Description Usage Arguments Details Examples
Load the MNIST images. There are two sets "train" and "t10k"; the
train
argument switches between these. The actual images
are not shipped with the package as they are ~11MB. Instead these
can be downloaded with download_mnist
or by passing
download_if_missing = TRUE
to this function.
1 | load_mnist(train = FALSE, download_if_missing = FALSE, cache_dir = NULL)
|
train |
Logical, indicating if the training data set should
be loaded. If |
download_if_missing |
Logical, indicating if the images
should be downloaded if not present. See
|
cache_dir |
Path to look for the rmnist cache. If not given (or
given as |
The first time within a session that the images are loaded, the loading process may be slow as the files are read from disk (this is particularly true for the "train = TRUE" data set, which is the larger of the two). Subsequent loads will be much faster though, as the processed images are cached within a session.
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.