Engagement & Churn Score

Algorithm
Engagement & Churn Prediction
Use Cases
Determine users at risk of churn, star users and regular users

Prerequisites

Before you reach this stage, ensure you’ve:
  1. Created a schema
  1. Integrated code to process your data and installed Begin’s SDK
  1. Created a project with the objective “Engagement & Churn Score”
Learning usually takes about 30 minutes. Once complete, your machine learning algorithm is ready to be used on your mobile device, browser, connected vehicles, or server applications.

Procedure

In order to get engagement scores, follow the initialization step:
import { BeginWorker } from "beginai"; const worker = BeginWorker.instance(APP_ID, LICENSE_KEY);
 
To use your trained algorithm, input the following code:
worker.engagementScore(projectUuid, targetObjectUuid, startDate, endDate)
This will return a dictionary with data in the following format:
  • avg_bottom_10_slope: Average bottom 10 slope for the given project’s target object in the date range
  • avg_top_10_slope: Average top 10 slope for the given project’s target object in the date range
  • ranked_slope: String ranked slope score, as a percentage
  • slope: Slope score as a floating point number
  • classification: Slowly Disengaging, Dropping Off, Rising Star or Stable based on the behaviour analysis
 
If the provided target object id is not found, the string NOT_FOUND will be returned