mnist_27 {dslabs}R Documentation

Useful example for illustrating machine learning algorithms based on MNIST data

Description

We only include a randomly selected set of 2s and 7s along with the two predictors based on the proportion of dark pixels in the upper left and lower right quadrants respectively. The dataset is divided into training and test sets.

Usage

mnist_27

Format

An object of class list.

Details

References

Y. LeCun, L. Bottou, Y. Bengio, and P. Haffner. "Gradient-based learning applied to document recognition." Proceedings of the IEEE, 86(11):2278-2324, November 1998.

See Also

[read_mnist()]

Examples

with(mnist_27$train, plot(x_1, x_2, col = as.numeric(y)))


[Package dslabs version 0.8.0 Index]