How to read MNIST database in R?

后端 未结 5 680
迷失自我
迷失自我 2021-02-05 22:31

I\'m currently working on a case study for which I need to work on the MNIST database.
The files in this site are said to be in IDX file format. I tried to take a look at th

5条回答
  •  北海茫月
    2021-02-05 23:21

    MNIST dataset is also available in the keras package.

    library(keras)
    mnist <- dataset_mnist()
    x_train <- mnist$train$x
    y_train <- mnist$train$y
    x_test <- mnist$test$x
    y_test <- mnist$test$y
    

提交回复
热议问题