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

main
Aurélien Geron 2018-12-21 10:18:37 +08:00
commit 210f845f81
4 changed files with 6 additions and 4 deletions

View File

@ -1197,6 +1197,7 @@
"n_hidden2 = 50\n", "n_hidden2 = 50\n",
"n_hidden3 = 50\n", "n_hidden3 = 50\n",
"n_hidden4 = 50\n", "n_hidden4 = 50\n",
"n_hidden5 = 50\n",
"n_outputs = 10\n", "n_outputs = 10\n",
"\n", "\n",
"X = tf.placeholder(tf.float32, shape=(None, n_inputs), name=\"X\")\n", "X = tf.placeholder(tf.float32, shape=(None, n_inputs), name=\"X\")\n",
@ -4648,7 +4649,7 @@
"name": "python", "name": "python",
"nbconvert_exporter": "python", "nbconvert_exporter": "python",
"pygments_lexer": "ipython3", "pygments_lexer": "ipython3",
"version": "3.6.5" "version": "3.5.5"
}, },
"nav_menu": { "nav_menu": {
"height": "360px", "height": "360px",

View File

@ -51,7 +51,7 @@ If you choose to use Anaconda, read the next section, or else jump to the [Using
When using Anaconda, you can optionally create an isolated Python environment dedicated to this project. This is recommended as it makes it possible to have a different environment for each project (e.g. one for this project), with potentially different libraries and library versions: When using Anaconda, you can optionally create an isolated Python environment dedicated to this project. This is recommended as it makes it possible to have a different environment for each project (e.g. one for this project), with potentially different libraries and library versions:
$ conda create -n mlbook python=3.5 anaconda $ conda create -n mlbook python=3.5 anaconda
$ source activate mlbook $ conda activate mlbook
This creates a fresh Python 3.5 environment called `mlbook` (you can change the name if you want to), and it activates it. This environment contains all the scientific libraries that come with Anaconda. This includes all the libraries we will need (NumPy, Matplotlib, Pandas, Jupyter and a few others), except for TensorFlow, so let's install it: This creates a fresh Python 3.5 environment called `mlbook` (you can change the name if you want to), and it activates it. This environment contains all the scientific libraries that come with Anaconda. This includes all the libraries we will need (NumPy, Matplotlib, Pandas, Jupyter and a few others), except for TensorFlow, so let's install it:

View File

@ -1,4 +1,4 @@
FROM continuumio/anaconda3 FROM continuumio/anaconda3:5.2.0
RUN apt-get update && apt-get upgrade -y \ RUN apt-get update && apt-get upgrade -y \
&& apt-get install -y \ && apt-get install -y \

View File

@ -9,6 +9,7 @@ services:
- userid=1000 - userid=1000
container_name: handson-ml container_name: handson-ml
image: handson-ml image: handson-ml
restart: unless-stopped
logging: logging:
driver: json-file driver: json-file
options: options:
@ -18,4 +19,4 @@ services:
- "6006:6006" - "6006:6006"
volumes: volumes:
- ../:/home/devel/handson-ml - ../:/home/devel/handson-ml
command: /opt/conda/bin/jupyter notebook --ip='*' --port=8888 --no-browser command: /opt/conda/bin/jupyter notebook --ip='0.0.0.0' --port=8888 --no-browser