Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying XGBoost for Regression Predictive Modeling and Time Series Analysis
  • Table Of Contents Toc
XGBoost for Regression Predictive Modeling and Time Series Analysis

XGBoost for Regression Predictive Modeling and Time Series Analysis

By : Partha Pritam Deka, Joyce Weiner
4.8 (9)
close
close
XGBoost for Regression Predictive Modeling and Time Series Analysis

XGBoost for Regression Predictive Modeling and Time Series Analysis

4.8 (9)
By: Partha Pritam Deka, Joyce Weiner

Overview of this book

XGBoost offers a powerful solution for regression and time series analysis, enabling you to build accurate and efficient predictive models. In this book, the authors draw on their combined experience of 40+ years in the semiconductor industry to help you harness the full potential of XGBoost, from understanding its core concepts to implementing real-world applications. As you progress, you'll get to grips with the XGBoost algorithm, including its mathematical underpinnings and its advantages over other ensemble methods. You'll learn when to choose XGBoost over other predictive modeling techniques, and get hands-on guidance on implementing XGBoost using both the Python API and scikit-learn API. You'll also get to grips with essential techniques for time series data, including feature engineering, handling lag features, encoding techniques, and evaluating model performance. A unique aspect of this book is the chapter on model interpretability, where you'll use tools such as SHAP, LIME, ELI5, and Partial Dependence Plots (PDP) to understand your XGBoost models. Throughout the book, you’ll work through several hands-on exercises and real-world datasets. By the end of this book, you'll not only be building accurate models but will also be able to deploy and maintain them effectively, ensuring your solutions deliver real-world impact.
Table of Contents (19 chapters)
close
close
1
Part 1:Introduction to Machine Learning and XGBoost with Case Studies
6
Part 2: Practical Applications – Data, Features, and Hyperparameters
13
Part 3: Model Evaluation Metrics and Putting Your Model into Production

Preparing data for modeling

To start modeling the data, you need to split the data into a training set and a testing set. You can easily do this with a function called train_test_split in scikit-learn. You’ll want to split your data into training and testing sets at the start of the data preparation process. That way, you won’t accidentally leak information from the training set into the testing set, which will inflate the results of accuracy tests. What this means is that you don’t want to allow the test dataset to contain any information about the right answer. For example, if you calculate the mean of a dataset in full before you do the train/test split and have that data in a column in both datasets, you’ve provided the testing dataset with information from the training dataset. When you use your model, you want the best result, but you also don’t want to have artificially increased the model’s accuracy.

To use the train_test_split function...

CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
XGBoost for Regression Predictive Modeling and Time Series Analysis
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist download Download options font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon