Import required modules
Load new records
We will read new records, where the prediction is null. Make sure you add a “Prediction” column first in the spreadsheet view of the table.Data Preprocessing
For predicting, we have to prepare the data in the same format as it was trained on.Load the model & predict
Sending Slack notifications
After making the predictions we will iterate over them and if a prediction is 1 (which means fraud) we will send an alert notification to slack.Expand this to see the full code
Expand this to see the full code
What’s Next
- You can make predictions on real-time incoming data using the saved model. Learn more about making real-time predictions on new incoming data.
- Using Peliqan you can create an app for business users to consume the model you have made in a simple and intuitive UI. Learn more about creating apps for users to consume your model.
