Churn prediction means detecting which customers are likely to leave a service or to cancel a subscription to a service. It is a critical prediction for many businesses because acquiring new clients often costs more than retaining existing ones. Once you can identify those customers that are at risk of cancelling, you should know exactly what marketing action to take for each individual customer to maximize the chances that the customer will remain.

 

About this Accelerator

This app serves as an example of how to present the drivers and predictions of your Datarobot model using a Churn prediction usecase. Building a churn predictor app  using Streamlit and DataRobot is a great way to leverage the power of machine learning to improve customer retention. 

 

  1. The first step in building a churn prediction model is to collect and prepare your data. This typically involves gathering data on your customers' behavior, demographics, and usage patterns. Once you have your data, you can upload it to DataRobot and let the platform do the rest. After training, DataRobot provides detailed insights into the model's performance, including feature importance, model validation, and accuracy metrics.
  2. Once you have a model that you're satisfied with, you can generate predictions on new data using DataRobot's prediction API. In this workflow, we assume that you have already generated these predictions and saved them as a CSV file.
  3. To create a Streamlit app for churn prediction, you will need to import the necessary libraries, including Pandas, NumPy, Streamlit, Plotly, and PIL. You can then read in your prediction data and set up your Streamlit app's page configuration.
  4. The app itself should allow users to specify criteria for viewing churn scores and top churn reasons. You can accomplish this using sliders and other interactive elements. 

 

This workflow can be adapted to present insights from other classification or regression models built in Datarobot.

 

224608035-0bc12701-198c-431f-b038-19235e323738.png

Additional Resources

Labels (1)
Contributors
Version history
Last update:
‎09-05-2023 10:11 PM
Updated by: