Skip to main content

Predicting Hotel Booking Cancellations in Python

Learn to build a machine learning model that predicts hotel cancellations
Jun 22, 2022
Code along with us onCode Along

View slides

In this live training, we will build a machine learning model to predict whether or not a customer will cancel a hotel booking. We will walk through all steps of the machine learning process, from importing the data over preprocessing the data up to training a model and evaluating its performance. Filip will provide a template workbook for you so you can easily follow along as he’s coding up the model.

Key Takeaways:

  • Familiarize yourself with the different steps in building a classification model.

  • How to import data using pandas and explore it using plotly

  • How to preprocess data and train a classification model on it using scikit-learn

  • Calculate and assess the performance of a classification model

Topics

Learn Topics Related to This Code-Along

Setting Up Your Python Environment

Learn to install common tools to work with Python, including Anaconda and git.

Webinars

DataCamp Workspace Live Code-Along

Hands-on session: What is DataCamp Workspace, and how can you use it?

Webinars

DataCamp in Action — Data Upskilling for Your Organization

Learn how 2,500+ Businesses are using DataCamp to close their team’s skill gaps

Webinars
Related
Marketing Artificial Intelligence Concept Illustration

blog

Data Science in Marketing: Customer Churn Rate Prediction

Learn how to use Python machine learning models to predict customer churn rates, turning marketing data into meaningful insights.
Elena Kosourova's photo

Elena Kosourova

10 min

tutorial

Predicting Employee Churn in Python

Analyze employee churn. Find out why employees are leaving the company, and learn to predict who will leave the company.
Avinash Navlani's photo

Avinash Navlani

14 min

code-along

Sentiment Analysis and Prediction in Python

Learn how to build a machine learning model predicting sentiment.
Justin Saddlemyer's photo

Justin Saddlemyer

code-along

Feature Engineering for Predicting Hotel Bookings with tidymodels

Learn how to manually engineer features, build and assess a machine learning workflow.
Jorge Zazueta's photo

Jorge Zazueta

code-along

Getting Started with Machine Learning in Python

Learn the fundamentals of supervised learning by using scikit-learn.
George Boorman's photo

George Boorman

code-along

Time Series Analysis in Python

Dig into financial time series in Python.
Justin Saddlemyer's photo

Justin Saddlemyer

See MoreSee More