Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases now! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Machine Learning with LightGBM and Python

You're reading from   Machine Learning with LightGBM and Python A practitioner's guide to developing production-ready machine learning systems

Arrow left icon
Product type Paperback
Published in Sep 2023
Publisher Packt
ISBN-13 9781800564749
Length 252 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Andrich van Wyk Andrich van Wyk
Author Profile Icon Andrich van Wyk
Andrich van Wyk
Arrow right icon
View More author details
Toc

Table of Contents (17) Chapters Close

Preface 1. Part 1: Gradient Boosting and LightGBM Fundamentals
2. Chapter 1: Introducing Machine Learning FREE CHAPTER 3. Chapter 2: Ensemble Learning – Bagging and Boosting 4. Chapter 3: An Overview of LightGBM in Python 5. Chapter 4: Comparing LightGBM, XGBoost, and Deep Learning 6. Part 2: Practical Machine Learning with LightGBM
7. Chapter 5: LightGBM Parameter Optimization with Optuna 8. Chapter 6: Solving Real-World Data Science Problems with LightGBM 9. Chapter 7: AutoML with LightGBM and FLAML 10. Part 3: Production-ready Machine Learning with LightGBM
11. Chapter 8: Machine Learning Pipelines and MLOps with LightGBM 12. Chapter 9: LightGBM MLOps with AWS SageMaker 13. Chapter 10: LightGBM Models with PostgresML 14. Chapter 11: Distributed and GPU-Based Learning with LightGBM 15. Index 16. Other Books You May Enjoy

Bagging and random forests

Bagging is an ensemble method where multiple models are trained on subsets of the training data. The models’ predictions are combined to make a final prediction, usually by taking the average for numerical prediction (for regression) or the majority vote for a class (for classification). When training each model, we select a subset of data from the original training dataset with replacement—that is, a specific training pattern can be a member of multiple subsets. Since each model is only presented with a sample of the training data, no single model can “memorize” the training data, which reduces overfitting. The following diagram illustrates the bagging process:

Figure 2.1 – Illustration of the bagging process; each independent classifier is trained on a random subsample from the training data and a final prediction is made by aggregating the predictions of all classifiers

Figure 2.1 – Illustration of the bagging process; each independent classifier is trained on a random subsample from the training data and a final prediction is made by aggregating the predictions of all classifiers

Each model in a bagging...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime