Set the base image to Ubuntu must be first instruction - use docker search to find images
FROM ubuntu # <image>
FROM ubuntu:latest # - <image>:<tag>
FROM ubuntu:precise (LTS)Set the maintainer info
Set the base image to Ubuntu must be first instruction - use docker search to find images
FROM ubuntu # <image>
FROM ubuntu:latest # - <image>:<tag>
FROM ubuntu:precise (LTS)Set the maintainer info
The IPython Notebook has two different keyboard input modes. Edit mode allows you to type code/text into a cell and is indicated by a green cell border. Command mode binds the keyboard to notebook level actions and is indicated by a grey cell border.
| from numpy import exp, array, random, dot | |
| class NeuralNetwork(): | |
| def __init__(self): | |
| # Seed the random number generator, so it generates the same numbers | |
| # every time the program runs. | |
| random.seed(1) | |
| # We model a single neuron, with 3 input connections and 1 output connection. |