Notebooks zum Lektüre
 
Go to file
Aurélien Geron 29ef56964a Since mldata.org is down, download MNIST elsewhere 2017-04-07 21:33:53 +02: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
.gitignore Migrate to TensorFlow 0.11.0 2016-11-23 09:26:19 +01: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 notebooks to TensorFlow 1.0.0 2017-02-17 11:51:26 +01:00
03_classification.ipynb Since mldata.org is down, download MNIST elsewhere 2017-04-07 21:33:53 +02:00
04_training_linear_models.ipynb Versicolor instead of Versicolour 2017-02-17 14:47:18 +01:00
05_support_vector_machines.ipynb Versicolor instead of Versicolour 2017-02-17 14:47:18 +01:00
06_decision_trees.ipynb Versicolor instead of Versicolour 2017-02-17 14:47:18 +01:00
07_ensemble_learning_and_random_forests.ipynb Since mldata.org is down, download MNIST elsewhere 2017-04-07 21:33:53 +02:00
08_dimensionality_reduction.ipynb Since mldata.org is down, download MNIST elsewhere 2017-04-07 21:33:53 +02:00
09_up_and_running_with_tensorflow.ipynb Upgrade notebooks to TensorFlow 1.0.0 2017-02-17 11:51:26 +01:00
10_introduction_to_artificial_neural_networks.ipynb Upgrade notebooks to TensorFlow 1.0.0 2017-02-17 11:51:26 +01:00
11_deep_learning.ipynb Fix bug: tf.add_n([loss] + reg_losses) rather than loss + reg_losses 2017-03-04 12:36:25 +01:00
12_distributed_tensorflow.ipynb Upgrade notebooks to TensorFlow 1.0.0 2017-02-17 11:51:26 +01:00
13_convolutional_neural_networks.ipynb Since mldata.org is down, download MNIST elsewhere 2017-04-07 21:33:53 +02:00
14_recurrent_neural_networks.ipynb Ensure python 2 support for chapters 13 and 14 2017-02-17 22:32:08 +01:00
15_autoencoders.ipynb Fix bug: tf.add_n([loss] + reg_losses) rather than loss + reg_losses 2017-03-04 12:36:25 +01:00
16_reinforcement_learning.ipynb Sadly had to remove binder support, because it is too unreliable and has been down for a month. 2017-03-04 11:15:52 +01:00
LICENSE First notebook added: matplotlib 2016-02-16 21:40:20 +01:00
README.md Sadly had to remove binder support, because it is too unreliable and has been down for a month. 2017-03-04 11:15:52 +01:00
index.ipynb Sadly had to remove binder support, because it is too unreliable and has been down for a month. 2017-03-04 11:15:52 +01:00
math_linear_algebra.ipynb Add datasets, fix a few math linear algebra issues 2016-05-03 11:35:17 +02:00
requirements.txt Make gym optional 2017-02-17 14:52:28 +01: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

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:

Installation

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

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 conda-forge tensorflow=1.0.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.