Classification

MNIST

MNIST database of handwritten digits

Dataset of 60,000 28x28 grayscale images of the 10 digits, along with a test set of 10,000 images.

void eddl::download_mnist()

Downloads MNIST Dataset.

See

http://yann.lecun.com/exdb/mnist/

Returns

(void) The binary files of MNIST

Example:

download_mnist();

Tensor* x_train = Tensor::load("mnist_trX.bin");
Tensor* y_train = Tensor::load("mnist_trY.bin");
Tensor* x_test = Tensor::load("mnist_tsX.bin");
Tensor* y_test = Tensor::load("mnist_tsY.bin");

CIFAR-10

CIFAR10 small image classification

Dataset of 50,000 32x32 color training images, labeled over 10 categories, and 10,000 test images.

void eddl::download_cifar10()

Downloads CIFAR-10 Dataset.

See

https://www.cs.toronto.edu/~kriz/cifar.html

Returns

(void) The binary files of CIFAR-10

Example:

download_cifar10();

Tensor* x_train = Tensor::load("cifar_trX.bin");
Tensor* y_train = Tensor::load("cifar_trY.bin");
Tensor* x_test = Tensor::load("cifar_tsX.bin");
Tensor* y_test = Tensor::load("cifar_tsY.bin");