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

Integer encoding

Integer encoding replaces categories with unique integers from 0 to n-1, where n is the number of distinct categories. The benefit of this method is that it does not expand the feature space and is computationally efficient. However, it does not capture any inherent relationships between categories. Let’s see how this works when implemented in code:

  1. For this method, you will use pandas, as well as train_test_split and LabelEncoder from scikit-learn, so you can start by importing those packages. You will be able to compare the results from integer encoding with pandas and scikit-learn’s LabelEncoder. You can start by importing the packages you will need:
    import pandas as pd
    from sklearn.model_selection import train_test_split
    from sklearn.preprocessing import LabelEncoder
  2. Now, you can set up some sample data to use, which will be lists of values for Neighborhood and SalePrice placed into a pandas DataFrame:
    data = {
        &apos...
Visually different images
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