I need to download Mnist data in order to work with it later. How can I do this? Should I have install Python on my device? I have tried to use such code and I receive an errors first error:
install.packages("tensorflow")
library(tensorflow)
#reticulate::install_miniconda()
install_tensorflow()
install.packages("keras")
library(keras)
install_keras()
mnist <- dataset_mnist()
X_train <- mnist$train$x
X_test <- mnist$test$x
y_train <- mnist$train$y
y_test <- mnist$test$y
Second error How can I do this installation in a right way?
I am a bit confused, if you have a problem downloading the dataset, you can use the following code:
#install.packages("dslabs")
library(dslabs)
mnist <- read_mnist()