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

  • Keras Deep Learning Cookbook
  • Rajdeep Dua Manpreet Singh Ghotra
  • 150字
  • 2021-06-10 19:38:48

Installing the Docker container with the host volume mapped

In this section, we look at how to map the local volume $(pwd)/keras-samples to the work directory in the container.

  1. Execute the note -v flag command, which does the volume mapping:
docker run -d -v /$(pwd)/keras-samples:/home/jovyan/work \
-p 8888:8888 rajdeepd/jupyter-keras start-notebook.sh --NotebookApp.token=''

If you go to the URL, you will notice the sample page being displayed.

  1. If you got /$(pwd)/keras-samples, you will notice that the Notebooks are available in the host directory, and they also can be seen being loaded by Jupyter:
rdua1-ltm:keras-samples rdua$ pwd
/Users/rdua/personal/keras-samples
rdua1-ltm:keras-samples rdua$ ls
MNIST CNN.ipynb sample_one.ipynb

If you open MNIST CNN.ipynb, it is a Keras CNN sample, which we will learn more about in the subsequent chapters.

In this recipe, we used the Docker image rajdeepd/jupyter-keras to create a Keras environment and access it from Jupyter running in the host environment.

主站蜘蛛池模板: 霍州市| 新郑市| 南乐县| 四川省| 逊克县| 时尚| 肇东市| 博爱县| 长丰县| 遵化市| 乃东县| 潮安县| 阿瓦提县| 湘阴县| 正镶白旗| 大名县| 城固县| 迁安市| 扶风县| 陆丰市| 海安县| 濉溪县| 湾仔区| 曲水县| 汤原县| 涪陵区| 新宁县| 边坝县| 阳山县| 武清区| 廊坊市| 晋城| 武义县| 台江县| 潞城市| 郸城县| 勃利县| 墨脱县| 兰西县| 白山市| 阜平县|