Merge branch 'master' of github.com:ageron/handson-ml

main
Aurélien Geron 2017-11-26 16:59:58 +01:00
commit 100e478315
4 changed files with 49 additions and 1 deletions

View File

@ -2258,7 +2258,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"Great! It seems that we had the right imputer strategy (mean), and apparently only the top 7 features are useful (out of 9), the last 2 seem to just add some noise."
"Great! It seems that we had the right imputer strategy (median), and apparently only the top 7 features are useful (out of 9), the last 2 seem to just add some noise."
]
},
{

19
docker/Dockerfile Normal file
View File

@ -0,0 +1,19 @@
FROM continuumio/anaconda3
WORKDIR /usr/src/project
COPY . /usr/src/project
RUN apt-get update && apt-get upgrade -y \
&& apt-get install -y \
libpq-dev \
build-essential \
git \
&& rm -rf /var/lib/apt/lists/* \
&& conda install -y -c conda-forge tensorflow=1.0.0 \
&& conda install -y -c conda-forge jupyter_contrib_nbextensions \
&& jupyter contrib nbextension install --user \
&& jupyter nbextension enable toc2/main

17
docker/docker-compose.yml Normal file
View File

@ -0,0 +1,17 @@
version: "3"
services:
handson-ml:
build:
context: ../
dockerfile: ./docker/Dockerfile
container_name: handson-ml
image: handson-ml
logging:
driver: json-file
options:
max-size: 50m
ports:
- "8888:8888"
volumes:
- ../:/usr/src/project
command: /opt/conda/bin/jupyter notebook --ip='*' --port=8888 --no-browser --allow-root

12
docker/makefile Normal file
View File

@ -0,0 +1,12 @@
help:
cat Makefile
run:
docker-compose up
exec:
docker-compose exec -ti hondson-ml /bin/bash
build: stop .FORCE
docker-compose build --force-rm
stop:
docker stop handson-ml || true; docker rm handson-ml || true;
.FORCE: