cancel
Showing results for 
Search instead for 
Did you mean: 

Present Datarobot prediction insights with Streamlit

Present Datarobot prediction insights with Streamlit

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. 

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.

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.

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.

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. 

A workflow of this process for building a Streamlit app using Datarobot predictions can be found in Churn streamlit app github repository. This workflow can be adapted to present insights from other classification or regression models built in Datarobot.

Labels (3)
0 Replies