R에 Keras 설치하기
R과 Keras 연동하기(설치하기)
1. R/RStudio 설치하기
2. Anacona 설치하기
2.1 RStudio -> Tools -> Global Options -> Packages -> Disable both "Use secure download method for HTTP" and "Use Internet Explorer library/proxy for HTTP"
3. Anaconda Prompt를 실행하여 다음을 실행한다.
3.1 conda update --all
3.2 conda create -n buillee python=3.7 anaconda 여기서 buillee는 각자에 맞게 변경하면 된다.
3.3 conda activate
3.4 activate buillee
3.5 C:\R\R-3.5.2\bin>R.exe 여기서 경로는 각자의 R를 설치한 경로를 지정하면 된다.
3.6 install.packages("keras")
3.7 library(keras)
3.8 install_keras(method="conda")
4. RStudio의 script에 다음을 입력한다.
install.packages("keras")
library(keras)
5. 다음의 명령어를 실행한다. 그러면 R에서 Keras를 이용할 수 있다.
mnist <- keras::dataset_mnist()
6. https://keras.rstudio.com/ 에서 제공하는 코드를 입력한다.
[ 참고 사이트 ] https://github.com/rstudio/keras/issues/626