diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000000..238f06bbce --- /dev/null +++ b/.gitignore @@ -0,0 +1,112 @@ +# Byte-compiled / optimized / DLL files +__pycache__/ +*.py[cod] +*$py.class + +# C extensions +*.so + +# Distribution / packaging +.Python +env/ +build/ +develop-eggs/ +dist/ +downloads/ +eggs/ +.eggs/ +lib/ +lib64/ +parts/ +sdist/ +var/ +wheels/ +*.egg-info/ +.installed.cfg +*.egg + +# PyInstaller +# Usually these files are written by a python script from a template +# before PyInstaller builds the exe, so as to inject date/other infos into it. +*.manifest +*.spec + +# Mr Developer +.mr.developer.cfg +.pydevproject +.project +.settings/ +.idea/ +.DS_Store + +# Installer logs +pip-log.txt +pip-delete-this-directory.txt + +# Unit test / coverage reports +htmlcov/ +.tox/ +.coverage +.coverage.* +.cache +nosetests.xml +coverage.xml +*.cover +.hypothesis/ + +# Translations +*.mo +*.pot + +# Django stuff: +*.log +local_settings.py + +# Flask stuff: +instance/ +.webassets-cache + +# Scrapy stuff: +.scrapy + +# Sphinx documentation +docs/_build/ + +# PyBuilder +target/ + +# Jupyter Notebook +.ipynb_checkpoints + +# pyenv +.python-version + +# celery beat schedule file +celerybeat-schedule + +# SageMath parsed files +*.sage.py + +# dotenv +.env + +# virtualenv +.venv +venv/ +ENV/ + +# Spyder project settings +.spyderproject +.spyproject + +# Rope project settings +.ropeproject + +# mkdocs documentation +/site + +# mypy +.mypy_cache/ + +# polyaxon configs +.polyaxon/ diff --git a/.polyaxonignore b/.polyaxonignore new file mode 100644 index 0000000000..1d0cb7d68c --- /dev/null +++ b/.polyaxonignore @@ -0,0 +1,13 @@ + +.git +.eggs +eggs +lib +lib64 +parts +sdist +var +*.pyc +*.swp +.DS_Store +./.polyaxon diff --git a/README.md b/README.md index 6039b0d710..d93ea528dc 100644 --- a/README.md +++ b/README.md @@ -32,3 +32,32 @@ These notebooks use Python 3.6 and Keras 2.0.8. They were generated on a p2.xlar * [8.4: Generating images with VAEs](http://nbviewer.jupyter.org/github/fchollet/deep-learning-with-python-notebooks/blob/master/8.4-generating-images-with-vaes.ipynb) * [8.5: Introduction to GANs](http://nbviewer.jupyter.org/github/fchollet/deep-learning-with-python-notebooks/blob/master/8.5-introduction-to-gans.ipynb ) + + +## Run on Polyaxon + +In order to run these Jupyter notebooks on Polyaxon: + + * Deploy [Polyaxon](https://docs.polyaxon.com/installation/deploy_polyaxon/) + * Install the [polyaxon-cli](https://docs.polyaxon.com/installation/install_polyaxon_cli/) + * To run the notebooks on GPU use `polyaxonfile_gpu.yml` instead of `polyaxonfile.yml` + + +```bash +# Clone the project +git clone https://github.com/polyaxon/deep-learning-with-python-notebooks-on-polyaxon.git + +cd deep-learning-with-python-notebooks-on-polyaxon + +# Login to polyaxon +polyaxon login --username= + +# Create Project +polyaxon project create --name='deep-learning-with-python-notebooks-on-polyaxon' --description='Jupyter notebooks for the code samples of the book "Deep Learning with Python" on Polyaxon' + +# Init the project +polyaxon init deep-learning-with-python-notebooks-on-polyaxon + +# Start the Jupyter notebook on polyaxon with the notebooks +polyaxon notebook start -f polyaxonfile.yml -u +``` diff --git a/polyaxonfile.yml b/polyaxonfile.yml new file mode 100644 index 0000000000..dbf385ee40 --- /dev/null +++ b/polyaxonfile.yml @@ -0,0 +1,10 @@ +--- +version: 1 + +kind: notebook + +build: + image: tensorflow/tensorflow:1.4.1-py3 + steps: + - pip3 install --no-cache-dir -U polyaxon-helper + - pip3 install jupyter diff --git a/polyaxonfile_gpu.yml b/polyaxonfile_gpu.yml new file mode 100644 index 0000000000..d40f794734 --- /dev/null +++ b/polyaxonfile_gpu.yml @@ -0,0 +1,10 @@ +--- +version: 1 + +kind: notebook + +build: + image: tensorflow/tensorflow:1.4.1-gpu-py3 + steps: + - pip3 install --no-cache-dir -U polyaxon-helper + - pip3 install jupyter