Notebooks zum Lektüre
 
Go to file
Aurélien Geron 61f9b54cdb Upgrade chapter 2 to sklearn 0.18 and ensure python 2 and python 3 both work 2016-11-03 23:47:11 +01:00
images Upgrade chapter 2 to sklearn 0.18 and ensure python 2 and python 3 both work 2016-11-03 23:47:11 +01:00
nets Add notebooks for chapters 5 to 14 2016-09-27 23:31:21 +02:00
.gitignore Add notebooks for chapters 5 to 14 2016-09-27 23:31:21 +02:00
01_the_machine_learning_landscape.ipynb Add notebooks for chapters 5 to 14 2016-09-27 23:31:21 +02:00
02_end_to_end_machine_learning_project.ipynb Upgrade chapter 2 to sklearn 0.18 and ensure python 2 and python 3 both work 2016-11-03 23:47:11 +01:00
03_classification.ipynb Rename classification.ipynb to 03_classification.ipynb 2016-09-27 23:32:03 +02:00
04_training_linear_models.ipynb Add notebooks for chapters 5 to 14 2016-09-27 23:31:21 +02:00
05_support_vector_machines.ipynb Add notebooks for chapters 5 to 14 2016-09-27 23:31:21 +02:00
06_decision_trees.ipynb Add notebooks for chapters 5 to 14 2016-09-27 23:31:21 +02:00
07_ensemble_learning_and_random_forests.ipynb Add notebooks for chapters 5 to 14 2016-09-27 23:31:21 +02:00
08_dimensionality_reduction.ipynb Add notebooks for chapters 5 to 14 2016-09-27 23:31:21 +02:00
09_up_and_running_with_tensorflow.ipynb Add notebooks for chapters 5 to 14 2016-09-27 23:31:21 +02:00
10_introduction_to_artificial_neural_networks.ipynb Minor improvement in chapter 10 2016-10-06 14:09:17 +02:00
11_deep_learning.ipynb Add notebooks for chapters 5 to 14 2016-09-27 23:31:21 +02:00
12_distributed_tensorflow.ipynb Add notebooks for chapters 5 to 14 2016-09-27 23:31:21 +02:00
13_convolutional_neural_networks.ipynb Fix china/flower order bug 2016-09-28 12:37:31 +02:00
14_recurrent_neural_networks.ipynb Little tweaks to beautify code in chapter 14 2016-10-06 14:52:36 +02:00
15_autoencoders.ipynb Add missing import sys 2016-10-08 00:19:23 +02:00
16_reinforcement_learning.ipynb Add Policy Gradients and DQN to RL notebook 2016-10-23 15:32:33 +02:00
Dockerfile Add gym[box2d] to Dockerfile 2016-10-12 21:52:58 +02:00
Dockerfile-base Improve Dockerfile for ageron/handson-ml 2016-10-09 11:04:45 +02:00
LICENSE First notebook added: matplotlib 2016-02-16 21:40:20 +01:00
README.md Update installation instructions to add OpenAI gym and Anaconda 2016-10-07 09:41:58 +02:00
index.ipynb Add reinforcement learning notebook (in progress) 2016-10-08 22:17:45 +02:00
math_linear_algebra.ipynb Add datasets, fix a few math linear algebra issues 2016-05-03 11:35:17 +02:00
requirements.txt Update installation instructions to add OpenAI gym and Anaconda 2016-10-07 09:41:58 +02:00
start-notebook.sh Use docker image ageron/handson-ml-base which solves the issue with using OpenAI gym within Jupyter 2016-10-08 21:39:36 +02:00
tools_matplotlib.ipynb fixed typo in tools_matplotlib.ipynb 2016-03-04 08:49:56 +01:00
tools_numpy.ipynb Remove one level of headers 2016-03-03 18:40:31 +01:00
tools_pandas.ipynb Add datasets, fix a few math linear algebra issues 2016-05-03 11:35:17 +02:00

README.md

Machine Learning Notebooks

Gitter Binder

This project aims at teaching you the fundamentals of Machine Learning in python. It contains the example code and solutions to the exercises in my O'Reilly book Hands-on Machine Learning with Scikit-Learn and TensorFlow:

book

Simply open the Jupyter notebooks you are interested in:

  • using Binder (recommended): launch binder
    • no installation needed, you can immediately experiment with the code examples
  • or using jupyter.org's notebook viewer
  • or by cloning this repository and running Jupyter locally
    • if you prefer this option, follow the installation instructions below.

Installation

No installation is required, just click the launch binder button above, this creates a new VM with everything you need already preinstalled, so you'll be good to go in a just a few seconds! But if you insist, here's how to install these notebooks on your own system.

Obviously, you will need git and python (python 3 is recommended, but python 2 should work as well).

First, clone this repository:

$ cd {your development directory}
$ git clone https://github.com/ageron/handson-ml.git
$ cd handson-ml

If you want an isolated environment (recommended), you can use virtualenv:

$ virtualenv env
$ source ./env/bin/activate

There are different packages for TensorFlow, depending on your platform. Please edit requirements.txt and make sure only the right one for your platform is uncommented. Default is Python 3.5, Ubuntu/Linux 64-bits, CPU-only.

Also, if you want to go through chapter 16 on Reinforcement Learning, you will need to install OpenAI gym and its dependencies for Atari simulations.

Then make sure pip is up to date, and use it to install the required python packages:

$ pip install --upgrade pip
$ pip install --upgrade -r requirements.txt

If you prefer to use Anaconda, you can run the following commands instead:

$ conda install -c jjhelmus tensorflow=0.10.0
$ conda install -c conda-forge jupyter_contrib_nbextensions

If you want to install the Jupyter extensions, run the following command:

$ jupyter contrib nbextension install --user

Then you can activate an extension, such as the Table of Contents (2) extension:

$ jupyter nbextension enable toc2/main

Finally, launch Jupyter:

$ jupyter notebook

This should start the Jupyter server locally, and open your browser. If your browser does not open automatically, visit localhost:8888. Click on index.ipynb to get started. You can visit http://localhost:8888/nbextensions to activate and configure Jupyter extensions.

That's it! Have fun learning ML.