官术网_书友最值得收藏!

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/.
主站蜘蛛池模板: 张北县| 安多县| 锦屏县| 洛阳市| 蓬安县| 奎屯市| 洛川县| 谢通门县| 潮州市| 山东| 江阴市| 波密县| 常州市| 安泽县| 无锡市| 康定县| 菏泽市| 虞城县| 旺苍县| 中卫市| 西林县| 湟中县| 娱乐| 留坝县| 石河子市| 陕西省| 五华县| 平邑县| 苏州市| 年辖:市辖区| 大石桥市| 大厂| 宜丰县| 舒城县| 偏关县| 安平县| 易门县| 湘阴县| 沙湾县| 辛集市| 西畴县|