Please note that a new edition (3rd edition) is now available as of December 2019. The code repository link for the 3rd edition is https://github.com/rasbt/python-machine-learning-book-3rd-edition.
Python Machine Learning, 2nd Ed.
published September 20th, 2017
Paperback: 622 pages
Publisher: Packt Publishing
Language: English
ISBN-10: 1787125939
ISBN-13: 978-1787125933
Kindle ASIN: B0742K7HYF
Helpful installation and setup instructions can be found in the README.md file of Chapter 1
To access the code materials for a given chapter, simply click on the open dir
links next to the chapter headlines to navigate to the chapter subdirectories located in the code/ subdirectory. You can also click on the ipynb
links below to open and view the Jupyter notebook of each chapter directly on GitHub.
In addition, the code/ subdirectories also contain .py script files, which were created from the Jupyter Notebooks. However, I highly recommend working with the Jupyter notebook if possible in your computing environment. Not only do the Jupyter notebooks contain the images and section headings for easier navigation, but they also allow for a stepwise execution of individual code snippets, which -- in my opinion -- provide a better learning experience.
Please note that these are just the code examples accompanying the book, which I uploaded for your convenience; be aware that these notebooks may not be useful without the formulae and descriptive text.
- Machine Learning - Giving Computers the Ability to Learn from Data [open dir] [ipynb]
- Training Machine Learning Algorithms for Classification [open dir] [ipynb]
- A Tour of Machine Learning Classifiers Using Scikit-Learn [open dir] [ipynb]
- Building Good Training Sets – Data Pre-Processing [open dir] [ipynb]
- Compressing Data via Dimensionality Reduction [open dir] [ipynb]
- Learning Best Practices for Model Evaluation and Hyperparameter Optimization [open dir] [ipynb]
- Combining Different Models for Ensemble Learning [open dir] [ipynb]
- Applying Machine Learning to Sentiment Analysis [open dir] [ipynb]
- Embedding a Machine Learning Model into a Web Application [open dir] [ipynb]
- Predicting Continuous Target Variables with Regression Analysis [open dir] [ipynb]
- Working with Unlabeled Data – Clustering Analysis [open dir] [ipynb]
- Implementing a Multi-layer Artificial Neural Network from Scratch [open dir] [ipynb]
- Parallelizing Neural Network Training with TensorFlow [open dir] [ipynb]
- Going Deeper: The Mechanics of TensorFlow [open dir] [ipynb]
- Classifying Images with Deep Convolutional Neural Networks [open dir] [ipynb]
- Modeling Sequential Data Using Recurrent Neural Networks [open dir] [ipynb]
Oh, there are so many things that we improved or added; where should I start!? The one issue on top of my priority list was to fix all the nasty typos that were introduced during the layout stage or my oversight. I really appreciated all the helpful feedback from readers in this manner! Furthermore, I addressed all the feedback about sections that may have been confusing or a bit unclear, reworded paragraphs, and added additional explanations. Also, special thanks go to the excellent editors of the second edition, who helped a lot along the way!
Also, the figures and plots became much prettier. While readers liked the graphic content a lot, some people criticized the PowerPoint-esque style and layout. Thus, I decided to overhaul every little figure with a hopefully more pleasing choice of fonts and colors. Also, the data plots look much nicer now, thanks to the matplotlib team who put a lot of work in matplotlib 2.0 and its new styling theme.
Beyond all these cosmetic fixes, new sections were added here and there. Among these is, for example, is a section on dealing with imbalanced datasets, which several readers were missing in the first edition and short section on Latent Dirichlet Allocation among others.
As time and the software world moved on after the first edition was released in September 2015, we decided to replace the introduction to deep learning via Theano. No worries, we didn't remove it but it got a substantial overhaul and is now based on TensorFlow, which has become a major player in my research toolbox since its open source release by Google in November 2015. Along with the new introduction to deep learning using TensorFlow, the biggest additions to this new edition are three brand new chapters focussing on deep learning applications: A more detailed overview of the TensorFlow mechanics, an introduction to convolutional neural networks for image classification, and an introduction to recurrent neural networks for natural language processing. Of course, and in a similar vein as the rest of the book, these new chapters do not only provide readers with practical instructions and examples but also introduce the fundamental mathematics behind those concepts, which are an essential building block for understanding how deep learning works.
Raschka, Sebastian, and Vahid Mirjalili. Python Machine Learning, 2nd Ed. Packt Publishing, 2017.
@book{RaschkaMirjalili2017,
address = {Birmingham, UK},
author = {Raschka, Sebastian and Mirjalili, Vahid},
edition = {2},
isbn = {978-1787125933},
keywords = {Clustering,Data Science,Deep Learning,
Machine Learning,Neural Networks,Programming,
Supervised Learning},
publisher = {Packt Publishing},
title = {{Python Machine Learning, 2nd Ed.}},
year = {2017}
}
- ISBN-10: 3958457339
- ISBN-13: 978-3958457331
- Amazon.de link
- Publisher link
- ISBN-10: 4295003379
- ISBN-13: 978-4295003373
- Amazon.co.jp link