Skip to content

Provide access #122

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
112 changes: 112 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -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/
13 changes: 13 additions & 0 deletions .polyaxonignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@

.git
.eggs
eggs
lib
lib64
parts
sdist
var
*.pyc
*.swp
.DS_Store
./.polyaxon
29 changes: 29 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -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=<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
```
10 changes: 10 additions & 0 deletions polyaxonfile.yml
Original file line number Diff line number Diff line change
@@ -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
10 changes: 10 additions & 0 deletions polyaxonfile_gpu.yml
Original file line number Diff line number Diff line change
@@ -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