- R Deep Learning Cookbook
- Dr. PKS Prakash Achyutuni Sri Krishna Rao
- 157字
- 2021-07-02 20:49:09
Getting ready
Setting up all three packages could be quite cumbersome depending on the operating system utilized. The following dockerfile code can be used to set up an environment with tensorflow, mxnet with GPU, and h2o installed with all the dependencies:
FROM chstone/mxnet-gpu:latest
MAINTAINER PKS Prakash <prakash5801>
# Install dependencies
RUN apt-get update && apt-get install -y
python2.7
python-pip
python-dev
ipython
ipython-notebook
python-pip
default-jre
# Install pip and Jupyter notebook
RUN pip install --upgrade pip &&
pip install jupyter
# Add R to Jupyter kernel
RUN Rscript -e "install.packages(c('repr', 'IRdisplay', 'crayon', 'pbdZMQ'), dependencies=TRUE, repos='https://cran.rstudio.com')" &&
Rscript -e "library(devtools); library(methods); options(repos=c(CRAN='https://cran.rstudio.com')); devtools::install_github('IRkernel/IRkernel')" &&
Rscript -e "library(IRkernel); IRkernel::installspec(name = 'ir32', displayname = 'R 3.2')"
# Install H2O
RUN Rscript -e "install.packages('h2o', dependencies=TRUE, repos='http://cran.rstudio.com')"
# Install tensorflow fixing the proxy port
RUN pip install tensorflow-gpu
RUN Rscript -e "library(devtools); devtools::install_github('rstudio/tensorflow')"
The current image is created on top of the chstone/mxnet-gpu Docker image.
The chstone/mxnet-gpu is a docker hub repository at https://hub.docker.com/r/chstone/mxnet-gpu/.
推薦閱讀
- Oracle從入門到精通(第3版)
- Spring Boot進階:原理、實戰與面試題分析
- Solr Cookbook(Third Edition)
- HTML5開發精要與實例詳解
- Visual Studio Code 權威指南
- Raspberry Pi Robotic Blueprints
- IDA Pro權威指南(第2版)
- Visual FoxPro 6.0程序設計
- Learning Ionic
- Web前端開發最佳實踐
- MySQL數據庫應用實戰教程(慕課版)
- 和孩子一起學編程:用Scratch玩Minecraft我的世界
- 例說FPGA:可直接用于工程項目的第一手經驗
- ArcPy and ArcGIS(Second Edition)
- C語言程序設計