Import required modules
Load a dataset
Load data from a table into a dataframe (df). The table needs to contains lead data, including an indication if these leads converted (historical data).Using Streamlit to build an app
We use the Streamlit module (st), built into Peliqan.io, to build a UI and show data.Prepare the data
We remove unwanted columns (features) from our leads and convert categories (e.g. lead source) to a numerical value:Train and save the model
Once the data is ready we split it into a training set and a testing sets to evaluate the model. We save the model to make more predictions later on.Next Steps
- You can make predictions on real-time incoming data using the saved model. Learn more about making real-time predictions on new incoming data.
- You can make real-time predictions on new incoming data and send alerts to slack if the model makes a prediction above a certain threshold.
- Using Peliqan you can create an app for business users to consume the model you have made. Learn more about creating apps for users to consume your ML model.
