[−][src]Function deep_learning_playground::setup::mnist::load_data
pub fn load_data(
dataset_key: DatasetKey,
normalize: bool
) -> Result<Vec<MnistImage>>
Loading MNIST Data (http://yann.lecun.com/exdb/mnist/). If the following files are not found in the .mnist directory of the execution path, download them from the database and decode the data.
- train-images-idx3-ubyte.gz: training set images (9912422 bytes)
- train-labels-idx1-ubyte.gz: training set labels (28881 bytes)
- t10k-images-idx3-ubyte.gz: test set images (1648877 bytes)
- t10k-labels-idx1-ubyte.gz: test set labels (4542 bytes)
If they existed, read that file and decode the data.
Arguments
dataset_key
-train_dataset()
ortest_dataset()
.normalize
- Flag that determines whether the image is normalized between 0.0 and 1.0.