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
Machine Learning with PyTorch and Scikit-Learn: Develop machine learning and deep learning models with Python
Purchase options and add-ons
This book of the bestselling and widely acclaimed Python Machine Learning series is a comprehensive guide to machine and deep learning using PyTorch's simple to code framework.
Purchase of the print or Kindle book includes a free eBook in PDF format.
Key Features
- Learn applied machine learning with a solid foundation in theory
- Clear, intuitive explanations take you deep into the theory and practice of Python machine learning
- Fully updated and expanded to cover PyTorch, transformers, XGBoost, graph neural networks, and best practices
Book Description
Machine Learning with PyTorch and Scikit-Learn is a comprehensive guide to machine learning and deep learning with PyTorch. 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 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, we teach the principles allowing you to build models and applications for yourself.
Why PyTorch?
PyTorch is the Pythonic way to learn machine learning, making it easier to learn and simpler to code with. This book explains the essential parts of PyTorch and how to create models using popular libraries, such as PyTorch Lightning and PyTorch Geometric.
You will also learn about generative adversarial networks (GANs) for generating new data and training intelligent agents with reinforcement learning. Finally, this new edition is expanded to cover the latest trends in deep learning, including graph neural networks and large-scale transformers used for natural language processing (NLP).
This PyTorch 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
- Explore frameworks, models, and techniques for machines to 'learn' from data
- Use scikit-learn for machine learning and PyTorch for deep learning
- Train machine learning classifiers on images, text, and more
- Build and train neural networks, transformers, and boosting algorithms
- 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 have a good grasp of Python basics and want to start learning about machine learning and deep learning, then this is the book for you. This is an essential resource written for developers and data scientists who want to create practical machine learning and deep learning applications using scikit-learn and PyTorch.
Before you get started with this book, you’ll need a good understanding of calculus, as well as linear algebra.
Table of Contents
- Giving Computers the Ability to Learn from Data
- Training Simple Machine Learning Algorithms for Classification
- A Tour of Machine Learning Classifiers Using Scikit-Learn
- Building Good Training Datasets – Data Preprocessing
- Compressing Data via Dimensionality Reduction
- Learning Best Practices for Model Evaluation and Hyperparameter Tuning
- Combining Different Models for Ensemble Learning
- Applying Machine Learning to Sentiment Analysis
- Predicting Continuous Target Variables with Regression Analysis
- Working with Unlabeled Data – Clustering Analysis
- Implementing a Multilayer Artificial Neural Network from Scratch
(N.B. Please use the Look Inside option to see further chapters)
- ISBN-101801819319
- ISBN-13978-1801819312
- PublisherPackt Publishing
- Publication dateFebruary 25, 2022
- LanguageEnglish
- Dimensions7.5 x 1.75 x 9.25 inches
- Print length770 pages
Explore your book, then jump right back to where you left off with Page Flip.
View high quality images that let you zoom in to take a closer look.
Enjoy features only possible in digital – start reading right away, carry your library with you, adjust the font, create shareable notes and highlights, and more.
Discover additional details about the events, people, and places in your book, with Wikipedia integration.
Frequently bought together

Customers who viewed this item also viewed
- Hands-On Machine Learning with Scikit-Learn and PyTorch: Concepts, Tools, and Techniques to Build Intelligent SystemsPaperbackFREE Shipping by AmazonGet it as soon as Monday, Sep 21
- Build a Large Language Model (From Scratch)PaperbackFREE Shipping by AmazonGet it as soon as Sunday, Sep 20
- Python Machine Learning By Example: Unlock machine learning best practices with real-world use casesPaperbackFREE Shipping on orders over $35 shipped by AmazonGet it as soon as Monday, Sep 21
- Hands-On Machine Learning with Scikit-Learn, Keras, and TensorFlow: Concepts, Tools, and Techniques to Build Intelligent SystemsPaperbackFREE Shipping by AmazonGet it as soon as Monday, Sep 21
- Mathematics of Machine Learning: Master linear algebra, calculus, and probability for machine learningPaperbackFREE Shipping by AmazonGet it as soon as Monday, Sep 21
- Build a Reasoning Model (From Scratch)PaperbackFREE Shipping by AmazonGet it as soon as Sunday, Sep 20
Customers also bought or read
- Python Machine Learning By Example: Unlock machine learning best practices with real-world use cases
Paperback$29.55$29.55Delivery Mon, Sep 21 - Mastering PyTorch: Create and deploy deep learning models from CNNs to multimodal models, LLMs, and beyond
Paperback$34.58$34.58Delivery Mon, Sep 21 - Mathematics of Machine Learning: Master linear algebra, calculus, and probability for machine learning
Paperback$44.30$44.30FREE delivery Mon, Sep 21 - Hands-On Machine Learning with Scikit-Learn, Keras, and TensorFlow: Concepts, Tools, and Techniques to Build Intelligent Systems
Paperback$49.50$49.50FREE delivery Mon, Sep 21 - Build a Large Language Model (From Scratch)#1 Best SellerComputer Neural Networks
Paperback$49.24$49.24FREE delivery Sun, Sep 20 - Designing Machine Learning Systems: An Iterative Process for Production-Ready Applications
Paperback$40.00$40.00FREE delivery Sun, Sep 20 - Python Machine Learning: Machine Learning and Deep Learning with Python, scikit-learn, and TensorFlow 2, 3rd Edition
Paperback$44.99$44.99FREE delivery Mon, Sep 21 - Deep Learning with PyTorch, Second Edition: Training and applying deep learning and generative AI models
Paperback$51.68$51.68FREE delivery Mon, Sep 21 - Hands-On Machine Learning with Scikit-Learn and PyTorch: Concepts, Tools, and Techniques to Build Intelligent Systems
Paperback$77.72$77.72FREE delivery Mon, Sep 21 - Pandas Cookbook: Practical recipes for scientific computing, time series, and exploratory data analysis using Python
Paperback$39.99$39.99FREE delivery Mon, Sep 21 - Deep Reinforcement Learning Hands-On: A practical and easy-to-follow guide to RL from Q-learning and DQNs to PPO and RLHF
Paperback$32.75$32.75Delivery Mon, Sep 21 - Deep Learning (Adaptive Computation and Machine Learning series)
Hardcover$51.51$51.51FREE delivery Sun, Sep 20 - Generative AI with Python and PyTorch: Navigating the AI frontier with LLMs, Stable Diffusion, and next-gen AI applications
Paperback$32.99$32.99Delivery Mon, Sep 21 - Graph Machine Learning: Learn about the latest advancements in graph data to build robust machine learning models
Paperback$38.54$38.54FREE delivery Mon, Sep 21 - Deep Learning with PyTorch: Build, train, and tune neural networks using Python tools
Paperback$51.01$51.01FREE delivery Sep 24 - 25 - Modern Time Series Forecasting with Python: Industry-ready machine learning and deep learning time series analysis with PyTorch and pandas
Paperback$42.74$42.74FREE delivery Mon, Sep 21 - Modern Computer Vision with PyTorch: A practical roadmap from deep learning fundamentals to advanced applications and Generative AI
Paperback$48.79$48.79FREE delivery Mon, Sep 21 - The Hundred-Page Machine Learning Book (The Hundred-Page Books)
Paperback$26.14$26.14Delivery Mon, Sep 21 - Deep Learning with TensorFlow and Keras: Build and deploy supervised, unsupervised, deep, and reinforcement learning models, 3rd Edition
Paperback$47.49$47.49FREE delivery Mon, Sep 21 - Natural Language Processing with Transformers, Revised Edition
Paperback$41.60$41.60FREE delivery Sun, Sep 20 - An Introduction to Statistical Learning: with Applications in Python (Springer Texts in Statistics)
Hardcover$56.21$56.21FREE delivery Fri, Oct 2 - Hands-On Large Language Models: Language Understanding and Generation
Paperback$37.68$37.68FREE delivery Mon, Sep 21 - AI Engineering: Building Applications with Foundation Models#1 Best SellerEnterprise Applications
Paperback$52.40$52.40FREE delivery Sun, Sep 20 - Building AI Agents with LLMs, RAG, and Knowledge Graphs: A practical guide to autonomous and modern AI agents
Paperback$41.99$41.99FREE delivery Mon, Sep 21 - Machine Learning for Algorithmic Trading: Predictive models to extract signals from market and alternative data for systematic trading strategies with Python
Paperback$47.60$47.60FREE delivery Mon, Sep 21 - Generative AI with LangChain: Build production-ready LLM applications and advanced agents using Python, LangChain, and LangGraph
Paperback$41.99$41.99FREE delivery Mon, Sep 21
From the Publisher
Key Topics:
- Parallelizing Neural Network Training with PyTorch
- Going Deeper - The Mechanics of PyTorch
- Classifying Images with Deep Convolutional Neural Networks
- Modeling Sequential Data Using Recurrent Neural Networks
- Generative Adversarial Networks for Synthesizing New Data
- ...and more!
What’s new in this PyTorch book from the Python Machine Learning series?
We gave the 3rd edition of Python Machine Learning a big overhaul by converting the deep learning chapters to use the latest version of PyTorch. We also added brand-new content, including chapters focused on the latest trends in deep learning. We walk you through concepts such as dynamic computation graphs and automatic differentiation. Additionally, we’ve introduced a popular adversarial training regime for neural networks that can be used to generate new, realistic-looking images.
What’s new:
- New content to cover the latest version of PyTorch and its features
- Introduction to libraries including PyTorch Lightning and Hugging Face transformers
- Addition of two cutting-edge machine learning techniques: transformers and graph neural networks
What are the key takeaways from Machine Learning with PyTorch and Scikit-Learn?
This book takes you on a journey from the origins of machine learning to the latest deep learning architectures. Through conceptual and practical examples, you'll develop a repertoire of techniques that allow you to solve a wide range of predictive modeling tasks, including tabular, image, and text data.
PyTorch is a very powerful and versatile tool, and deep learning naturally requires very flexible building blocks. Hence, PyTorch can sometimes be very verbose compared to traditional machine learning libraries such as scikit-learn. In this book, we explain how PyTorch works and cover all the essential parts. However, we also focus on code readability to ensure you don’t get overwhelmed.
The book takes a deep dive into the underlying methods and does not shy away from explaining fundamental deep learning architectures and concepts from scratch. Our objective is to teach you deep learning and see how you can put it into practice using PyTorch rather than the other way around.
What makes this book different from other books on PyTorch?
We put a lot of thought and care into organizing the general structure of the book, the flow of topics, and how the chapters build on each other. This includes the transition from one chapter explaining neural networks by implementing them from scratch in NumPy to another chapter explaining how to use PyTorch to make this more convenient.
There are many great books on machine learning and deep learning out there. However, from many years of teaching and interacting with students, we heard that many books don't include hands-on examples that help readers to put these into practice. Other books have a strong focus on code examples at the expense of explanations. Machine Learning with PyTorch and Scikit-Learn strikes a good balance between concepts, theory, and practice and takes advantage of synergistic effects when explaining new methods.
Machine Learning with PyTorch and Scikit-Learn
|
Mastering Pytorch
|
Python Machine Learning
|
Python Machine Learning by Example
|
Mathematics of Machine Learning
|
|
|---|---|---|---|---|---|
|
Add to Cart
|
Add to Cart
|
Add to Cart
|
Add to Cart
|
Add to Cart
|
|
| Customer Reviews |
4.6 out of 5 stars 527
|
4.2 out of 5 stars 62
|
4.5 out of 5 stars 496
|
4.9 out of 5 stars 78
|
4.4 out of 5 stars 121
|
| Technology Used | PyTorch, scikit-learn | PyTorch | TensorFlow, scikit-learn | PyTorch, TensorFlow, pandas, NumPy, scikit-learn | Matplotlib, NumPy, SciPy, scikit-learn |
| Reader Knowledge Level | Beginner to Intermediate | Intermediate to Advanced | Beginner to Intermediate | Beginner to Intermediate | Beginner to Intermediate |
| Topics / New Topics | New content on transformers, gradient boosting, and GNNs | New content on diffusion models, recommender systems, mobile deployment, Hugging Face, and GNNs | Revised and expanded to include GANs and reinforcement learning | Revised with PyTorch builds, expanded best practices, and new content on LLMs and multimodal models | Linear algebra, calculus, multivariable calculus, and probability theory |
Editorial Reviews
Review
"I’m confident that you will find this book invaluable both as a broad overview of the exciting field of machine learning and as a treasure of practical insights. I hope it inspires you to apply machine learning for the greater good in your problem area, whatever it might be."
-- Dmytro Dzhulgakov, PyTorch Core Maintainer
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. As Lead AI Educator at Grid AI, Sebastian plans to continue following his passion for helping people get into machine learning and artificial intelligence.
Yuxi (Hayden) Liu is a Software Engineer, Machine Learning at Google. He is developing and improving machine learning models and systems for ads optimization on the largest search engine in the world.
Vahid Mirjalili is a deep learning researcher focusing on CV applications. Vahid received a Ph.D. degree in both Mechanical Engineering and Computer Science from Michigan State University.
Product details
- Publisher : Packt Publishing
- Publication date : February 25, 2022
- Language : English
- Print length : 770 pages
- ISBN-10 : 1801819319
- ISBN-13 : 978-1801819312
- Item Weight : 3.09 pounds
- Dimensions : 7.5 x 1.75 x 9.25 inches
- Best Sellers Rank: #66,183 in Books (See Top 100 in Books)
- #1 in Speech & Audio Processing
- #24 in Computer Neural Networks
- #32 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 companies on AI solutions and serves on the Open Source Advisory 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.

Yuxi (Hayden) Liu is a Software Engineer, Machine Learning at Google. Previously he worked as a machine learning scientist in a variety of data-driven domains and applied his ML expertise in computational advertising, marketing and cybersecurity. He is now developing and improving the machine learning models and systems for ads optimization on the largest search engine in the world.
He is an author of a series of machine learning books and an education enthusiast. His first book, also the first edition of Python Machine Learning by Example, ranked the #1 bestseller in Amazon in 2017 and 2018, and was translated into many different languages. His other books include R Deep Learning Projects, Hands-On Deep Learning Architectures with Python, and PyTorch 1.x Reinforcement Learning Cookbook.

















