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

Deploying a model using containers

Before you can containerize your application, you need to ensure it runs properly in a production environment. Then, you can build a Dockerfile, a configuration file that reproduces that production environment as a container. You’ll complete both the testing and containerization steps on your local system; then, in the next section, you’ll learn how to deploy your container to the cloud.

Let’s consider an example Dockerfile that includes the pieces you’d need to containerize the Flask API you created earlier in this chapter and the model from Chapter 9:

  1. First, you’ll need to inherit Python from a standardized image. You’ll want to match the version to what you’ve been using – in this case, Python 3.9. The -slim option reduces the amount of disk space your container takes up:
    FROM python:3.9-slim
  2. Next, you’ll want to establish a web socket so that it uses EXPOSE 8000, as well...
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