Search icon CANCEL
Subscription
0
Cart icon
Cart
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Mastering Java for Data Science

You're reading from  Mastering Java for Data Science

Product type Book
Published in Apr 2017
Publisher Packt
ISBN-13 9781782174271
Pages 364 pages
Edition 1st Edition
Languages
Author (1):
Alexey Grigorev Alexey Grigorev
Profile icon Alexey Grigorev
Toc

Gradient Boosting Machines and XGBoost


Gradient Boosting Machines (GBM) is an ensembling algorithm. The main idea behind GBM is to take some base model and then  fit this model, over and over, to the data, gradually improving the performance. It is different from Random Forest models because GBM tries to improve the results at each step, while random forest builds multiple independent models and takes their average.

The main idea behind GBM can be best illustrated with a Linear Regression example. To fit several linear regressions to data, we can do the following:

  1. Fit the base model to the original data.
  2. Take the difference between the target value and the prediction of the first model (we call it the residuals of Step 1) and use this for training the second model.
  3. Take the difference between the residuals of step 1 and predictions of step 2 (this is the residuals of Step 2) and fit the 3rd model.
  4. Continue until you train N models.
  5. For predicting, sum up the predictions of all individual models...
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 $15.99/month. Cancel anytime