y_train <- to_categorical(y_train,10)
y_test <- to_categorical(y_test,10)
以上代码运行需要正确的keras::tensorflow包安装:
library(devtools)
devtools::install_github("rstudio/tensorflow")
library(tensorflow)
install_tensorflow()
library(keras)
y_train <- to_categorical(y_train,10)
y_test <- to_categorical(y_test,10)
以上代码运行需要正确的keras::tensorflow包安装:
library(devtools)
devtools::install_github("rstudio/tensorflow")
library(tensorflow)
install_tensorflow()
library(keras)