
Enjoy fast, free delivery, exclusive deals, and award-winning movies & TV shows with Prime
Try Prime
and start saving today with fast, free delivery
Amazon Prime includes:
Fast, FREE Delivery is available to Prime members. To join, select "Try Amazon Prime and start saving today with Fast, FREE Delivery" below the Add to Cart button.
Amazon Prime members enjoy:- Cardmembers earn 5% Back at Amazon.com with a Prime Credit Card.
- Unlimited Free Two-Day Delivery
- Streaming of thousands of movies and TV shows with limited ads on Prime Video.
- A Kindle book to borrow for free each month - with no due dates
- Listen to over 2 million songs and hundreds of playlists
- Unlimited photo storage with anywhere access
Important: Your credit card will NOT be charged when you start your free trial or if you cancel during the trial period. If you're happy with Amazon Prime, do nothing. At the end of the free trial, your membership will automatically upgrade to a monthly membership.
Buy new:
-9% $36.20$36.20
Ships from: Amazon.com Sold by: Amazon.com
Save with Used - Very Good
$29.70$29.70
FREE delivery March 17 - 20
Ships from: firstclassbooks Sold by: firstclassbooks

Download the free Kindle app and start reading Kindle books instantly on your smartphone, tablet, or computer - no Kindle device required.
Read instantly on your browser with Kindle for Web.
Using your mobile phone camera - scan the code below and download the Kindle app.
Follow the authors
OK
Python Machine Learning: Machine Learning and Deep Learning with Python, scikit-learn, and TensorFlow 2, 3rd Edition Paperback – December 12, 2019
Purchase options and add-ons
Applied machine learning with a solid foundation in theory. Revised and expanded for TensorFlow 2, GANs, and reinforcement learning.
Key Features
- Third edition of the bestselling, widely acclaimed Python machine learning book
- Clear and intuitive explanations take you deep into the theory and practice of Python machine learning
- Fully updated and expanded to cover TensorFlow 2, Generative Adversarial Network models, reinforcement learning, and best practices
Book Description
Python Machine Learning, Third Edition is a comprehensive guide to machine learning and deep learning with Python. It acts as both a step-by-step tutorial, and a reference you'll keep coming back to as you build your machine learning systems.
Packed with clear explanations, visualizations, and working examples, the book covers all the essential machine learning techniques in depth. While some books teach you only to follow instructions, with this machine learning book, Raschka and Mirjalili teach the principles behind machine learning, allowing you to build models and applications for yourself.
Updated for TensorFlow 2.0, this new third edition introduces readers to its new Keras API features, as well as the latest additions to scikit-learn. It's also expanded to cover cutting-edge reinforcement learning techniques based on deep learning, as well as an introduction to GANs. Finally, this book also explores a subfield of natural language processing (NLP) called sentiment analysis, helping you learn how to use machine learning algorithms to classify documents.
This book is your companion to machine learning with Python, whether you're a Python developer new to machine learning or want to deepen your knowledge of the latest developments.
What you will learn
- Master the frameworks, models, and techniques that enable machines to 'learn' from data
- Use scikit-learn for machine learning and TensorFlow for deep learning
- Apply machine learning to image classification, sentiment analysis, intelligent web applications, and more
- Build and train neural networks, GANs, and other models
- Discover best practices for evaluating and tuning models
- Predict continuous target outcomes using regression analysis
- Dig deeper into textual and social media data using sentiment analysis
Who This Book Is For
If you know some Python and you want to use machine learning and deep learning, pick up this book. Whether you want to start from scratch or extend your machine learning knowledge, this is an essential resource. Written for developers and data scientists who want to create practical machine learning and deep learning code, this book is ideal for anyone who wants to teach computers how to learn from data.
Table of Contents
- Giving Computers the Ability to Learn from Data
- Training Simple ML Algorithms for Classification
- ML Classifiers Using scikit-learn
- Building Good Training Datasets - Data Preprocessing
- Compressing Data via Dimensionality Reduction
- Best Practices for Model Evaluation and Hyperparameter Tuning
- Combining Different Models for Ensemble Learning
- Applying ML to Sentiment Analysis
- Embedding a ML Model into a Web Application
- Predicting Continuous Target Variables with Regression Analysis
- Working with Unlabeled Data - Clustering Analysis
- Implementing Multilayer Artificial Neural Networks
- Parallelizing Neural Network Training with TensorFlow
- TensorFlow Mechanics
- Classifying Images with Deep Convolutional Neural Networks
- Modeling Sequential Data Using Recurrent Neural Networks
- GANs for Synthesizing New Data
- RL for Decision Making in Complex Environments
- Print length770 pages
- LanguageEnglish
- PublisherPackt Publishing
- Publication dateDecember 12, 2019
- Dimensions9.25 x 7.52 x 1.59 inches
- ISBN-101789955750
- ISBN-13978-1789955750
Book recommendations, author interviews, editors' picks, and more. Read it now.
Frequently bought together

Frequently purchased items with fast delivery
From the brand

-
Packt is a leading publisher of technical learning content with the ability to publish books on emerging tech faster than any other.
Our mission is to increase the shared value of deep tech knowledge by helping tech pros put software to work.
We help the most interesting minds and ground-breaking creators on the planet distill and share the working knowledge of their peers.
-
New Releases
-
Power BI
-
Machine Learning
-
Deep Learning
-
Causality and XAI
-
Finance and Forecasting
-
See Our Full Range
From the Publisher


What's new in this third edition?
Many readers have told us how much they love the first 12 chapters of the book as a comprehensive introduction to machine learning and Python's scientific computing stack. To keep these chapters relevant and to improve the explanations based on reader feedback, we updated them to support the latest versions of NumPy, SciPy, and scikit-learn.
One of the most exciting events in the deep learning world was the release of TensorFlow 2. Consequently, all the TensorFlow-related deep learning chapters have received a big overhaul. Since TensorFlow 2 introduced many new features and fundamental changes, we rewrote these chapters from scratch. Furthermore, we added a new chapter on Generative Adversarial Networks, which are one of the hottest topics in deep learning research, as well as a comprehensive introduction to reinforcement learning based on numerous requests from readers.

What are the key takeaways from your book?
Machine learning can be useful in almost every problem domain. We cover a lot of different subfields of machine learning in the book. My hope is that people can find inspiration for applying these fundamental techniques to drive their research or industrial applications. Also, using well-developed and maintained open source software makes machine learning very accessible to a wide audience of experienced programmers, as well as those who are new to programming.
Python Machine Learning Third Edition is also different from a classic academic machine learning textbook due to its emphasis on practical code examples. However, I think this approach is highly valuable for both students and young researchers who are getting started in machine learning and deep learning. We heard from readers of previous editions that the book strikes a good balance between explaining the broader concepts supported with great hands-on examples, giving a light introduction to the mathematical underpinnings.

Why is it important to learn about GANs and reinforcement learning?
The first GANs paper had just come out two years before we started working on the second edition, but we weren't sure of its relevance. However, GANs have evolved into one of the hottest and most widely used deep learning techniques. People use them for creating artwork, colorizing and improving the quality of photos, and to recreate old video game textures in higher resolutions. It goes without saying that an introduction to GANs was long overdue.
Another important machine learning topic not included in previous editions is reinforcement learning, which has received a massive boost in attention recently. Thanks to impressive projects such as DeepMind's AlphaGo and AlphaGo Zero, reinforcement learning has received extensive news coverage. And just recently, it’s been used to compete with the world's top e-sports players in the real-time strategy video game StarCraft II. We hope that our new chapters can provide an accessible and practical introduction to this exciting field.
![]()
Python Machine Learning, 3rd Edition
|
![]()
Machine Learning with PyTorch and Scikit-Learn
|
![]()
Mastering Pytorch 2E
|
![]()
Python Machine Learning by Example 4E
|
|
---|---|---|---|---|
Customer Reviews |
4.5 out of 5 stars 470
|
4.6 out of 5 stars 400
|
4.5 out of 5 stars 31
|
4.9 out of 5 stars 19
|
Price | $36.20$36.20 | $41.03$41.03 | $39.51$39.51 | $43.69$43.69 |
Technology Used | TensorFlow, scikit-learn | PyTorch, scikit-learn | PyTorch | PyTorch, TensorFlow, pandas, NumPy, scikit-learn |
Reader Knowledge Level | Beginner to Intermediate | Beginner to intermediate | Intermediate to Advanced | Beginner to Intermediate |
New Topics | Revised and expanded to include GANs and reinforcement learning | New content on transformers, gradient boosting, and GNNs | New content on diffusion models, recommender systems, mobile deployment, Hugging Face, and GNNs | Revised with PyTorch builds, expanded best practices, and new content on LLMs and multimodal models |
Editorial Reviews
Review
"Python Machine Learning 3rd edition is a very useful book for machine learning beginners all the way to fairly advanced readers, thoroughly covering the theory and practice of ML, with example datasets, Python code, and good pointers to the vast ML literature about advanced issues."
--Alex Martelli, Python Software Foundation Fellow, Co-author of Python Cookbook and Python in a Nutshell
"A brilliantly approachable introduction to machine learning with Python. Raschka and Mirjalili break difficult concepts down into language the layperson can easily understand while placing these examples within real-world contexts. A worthy addition to your machine learning library!"
--Dr Kirk Borne, Principal Data Scientist, Data Science Fellow, and Executive Advisor at Booz Allen Hamilton, and co-author of Ten Signs of Data Science Maturity
"Python Machine Learning, Third Edition is a highly practical, hands-on book that covers the field of machine learning, from theory to practice. I strongly recommend it to any practitioner who wishes to become an expert in machine learning. Excellent book!"
--
Sebastian Thrun, CEO of Kitty Hawk Corporation, and chairman and co-founder of Udacity
"I've been teaching "Big Data Machine Learning AI" at Johns Hopkins Carey Business School for the past several years and have employed Sebastian Raschka and Vahid Mirjalili's book ever since. I give their newest edition the highest marks for making Machine Learning digestible for the lay person. Their book is a must-have when teaching new recruits the amazing art of AI - I give their book my most enthusiastic endorsement!"
--Jim Kyung-Soo Liew, Ph.D., Associate Professor in Finance and AI at Johns Hopkins Carey Business School
About the Author
Sebastian Raschka is an Assistant Professor of Statistics at the University of Wisconsin-Madison focusing on machine learning and deep learning research. Some of his recent research methods have been applied to solving problems in the field of biometrics for imparting privacy to face images. Other research focus areas include the development of methods related to model evaluation in machine learning, deep learning for ordinal targets, and applications of machine learning to computational biology.
Vahid Mirjalili obtained his Ph.D. in mechanical engineering working on novel methods for large-scale, computational simulations of molecular structures. Currently, he is focusing his research efforts on applications of machine learning in various computer vision projects at the Department of Computer Science and Engineering at Michigan State University. He recently joined 3M Company as a research scientist, where he uses his expertise and applies state-of-the-art machine learning and deep learning techniques to solve real-world problems in various applications to make life better.
Product details
- Publisher : Packt Publishing; 3rd edition (December 12, 2019)
- Language : English
- Paperback : 770 pages
- ISBN-10 : 1789955750
- ISBN-13 : 978-1789955750
- Item Weight : 2.9 pounds
- Dimensions : 9.25 x 7.52 x 1.59 inches
- Best Sellers Rank: #103,753 in Books (See Top 100 in Books)
- #49 in Computer Neural Networks
- #51 in Natural Language Processing (Books)
- #86 in Python Programming
- Customer Reviews:
About the authors
Sebastian Raschka, PhD is an LLM Research Engineer with over a decade of experience in artificial intelligence. His work bridges academia and industry, including roles as senior engineering staff at an AI company and a statistics professor.
As an independent researcher and industry expert, Sebastian collaborates with Fortune 500 companies on AI solutions and serves on the Open Source Board at University of Wisconsin–Madison.
Sebastian specializes in LLMs and the development of high-performance AI systems, with a deep focus on practical, code-driven implementations.
Discover more of the author’s books, see similar authors, read book recommendations and more.
Customer reviews
Customer Reviews, including Product Star Ratings help customers to learn more about the product and decide whether it is the right product for them.
To calculate the overall star rating and percentage breakdown by star, we don’t use a simple average. Instead, our system considers things like how recent a review is and if the reviewer bought the item on Amazon. It also analyzed reviews to verify trustworthiness.
Learn more how customers reviews work on AmazonCustomers say
Customers find the book's content helpful and well-written. They appreciate the clear structure and good replacement text. The book introduces enough concepts for them to understand.
AI-generated from the text of customer reviews
Select to learn more
Customers find the book's content easy to follow and helpful for data scientists. It introduces enough concepts to understand, making it one of the best references for machine learning. The book provides substantial theoretical fundamentals and clear explanations of the underlying math. They say it's an excellent introductory reading on ML and one of the best references on the subject.
"...into deep learning, things get worse a little bit... The contents are still good in general, however the connections between contents might not be..." Read more
"...The replacement text looks great. The book itself is great.. well written, easy to follow, and contains a lot of good information." Read more
"The book is good but the cover is a little dirty. There may be a defect in the preservation of the book." Read more
"...Not only does it include information on the code side, it also has substantial theoretical fundamentals...." Read more
Customers find the book well-written and easy to follow. They appreciate the clear structure of the content, replacement text looks great, and comprehensive coverage.
"...In addition, the contents are structured really well, too...." Read more
"...The replacement text looks great. The book itself is great.. well written, easy to follow, and contains a lot of good information." Read more
"...book in the runup to a new job involving ML, and it was the perfect text for the job...." Read more
"The book is very comprehensive, up-to-date, and keeps a nice balance of intuition and mathematical rigor." Read more
Reviews with images

bad printing quality and no billing, but I received free replacement
Top reviews from the United States
There was a problem filtering reviews right now. Please try again later.
- Reviewed in the United States on June 20, 2020I have not finished this book and I just reached chapter 16, but here are my key takeaways for this book:
1. Everything before chapter 13, before the book fully gets into deep learning and TensorFlow, are great. With already some background in python for data analysis (I have also taken the Andrew Ng's Coursera course on Machine Learning), this book supplements my knowledge greatly. The biggest highlight I would say is that it introduces you JUST ENOUGH concepts for you to understand how everything works. In addition, the contents are structured really well, too. If I were to rate this section of the book, I would give 10/10 although it would be better to have some exercises, you can always practice using Kaggle datasets.
2. Since chapter 13 when the book gets into deep learning, things get worse a little bit... The contents are still good in general, however the connections between contents might not be the case. The connections between contents are important for new learners because that helps them to understand how A leads to B and then leads to C. Here, I found the actual TensorFlow documentation a really good material to review along with the book. After reviewing those documentations, coming back to this book allows me to comprehend much more than reading the first time. In addition, if you are not careful enough, the deep learning sections also seems to have accuracy issues with its contents that could confuse people. Even though I have not finished the book, I would give 9/10 for everything I have read for deep learning.
- Reviewed in the United States on January 27, 2020I really wanted to like this book, but the printed text is unreadable. Smeared, blurry, and faded beyond legibility. Looks like a washed out photocopy of a page printed on a 1980’s ribbon dot-matrix printer.. but a printer that was partially out of ink. There’s no excuse for this. No reputable publisher would ship material this poor.
Update: Was contacted by Amazon rep, and new book with corrected print was shipped free of charge. The replacement text looks great. The book itself is great.. well written, easy to follow, and contains a lot of good information.
- Reviewed in the United States on August 22, 2021The book is good but the cover is a little dirty. There may be a defect in the preservation of the book.
- Reviewed in the United States on April 6, 2021I blazed through this book in the runup to a new job involving ML, and it was the perfect text for the job. Not only does it include information on the code side, it also has substantial theoretical fundamentals. I feel like, for the first time, I really understand what SVMs do, or how decision trees are trained. I'd recommend this volume to anyone who, like me, had substantial experience programming in Python and would like to dive into scikit-learn.
- Reviewed in the United States on September 14, 2020I haven't finished reading yet. I am just about halfway through. I like the fact that this book goes into the underlying math and explains concepts very well. The author provides links to his pdf notes where the details are too much of a digression. Rather than using higher-level machine learning libraries like scikit, tensor flow and keras, the author walks through the algorithms in python and numpy. Overall, this book has the right balance between being hands-on with the code and explaining the math. I am happy I got this.
- Reviewed in the United States on June 13, 2021Raschka and Mirjalili's book is required reading for my class in Machine Learning. My students like the clear explanations and illustrations with coding. As a machine learning practitioner, their book is never far away from my computer as reference material. I would recommend that the authors introduce PyTorch and BERT models, among other elements, in their next edition.
- Reviewed in the United States on August 24, 2023I have started to read the first chapter and I have found that the book code just don’t run if you don’t have the correct packages in the Python interpreter. Use the following packages versions for python 3.9.13:
NumPy 1.21.2
SciPy 1.7.0
Scikit-learn 1.0
Matplotlib 3.4.3
pandas 1.3.2
- Reviewed in the United States on December 25, 2019The book is very comprehensive, up-to-date, and keeps a nice balance of intuition and mathematical rigor.
Top reviews from other countries
- anbutech17Reviewed in India on February 8, 2025
5.0 out of 5 stars Best ML book for pro engineers
Best ML python book
- Omatseye OnuwajeReviewed in Canada on September 6, 2021
5.0 out of 5 stars The time of delivery
Study Business analysis
-
GiusyReviewed in Italy on April 27, 2022
5.0 out of 5 stars Ottimo libro sull'argomento
Acquistato grazie ad uno sconto ottimo, davvero ben fatto, anche per chi si avvicina ora all'argomento.
-
Ana Isabel Bezerra CavalcantiReviewed in Brazil on October 15, 2020
5.0 out of 5 stars Importante para trabalhos futuros.
Atendeu às minhas expectativas e será útil em trabalhos futuros.
-
BReviewed in Spain on April 12, 2021
5.0 out of 5 stars Muy buen contenido y amplios fundamentos
El libro cubre un amplio contenido en Machine Learning y Deep Learning, con explicaciones muy precisas de lo que se está haciendo en cada momento, es un libro muy bueno pero recomiendo tener algunas bases, lo recomiendo si quieres profundizar en el tema o si no has entendido del todo algunos fundamentos o bases, es perfecto para estudiantes y profesionales del sector, también habrá códigos que no funcionen 100% como en el libro y tendrás que adaptarlos o matizarlos, pues los paquetes han ido actualizándose y hay pequeños cambios, en cualquier caso, es fácil resolver cualquier problema que encuentres con los códigos si consultas en internet y en foros especializados.
