Back to Index

Predictive Query Language (PQL) Explained


Transcript

Kumo uses what they call the predictive query language or PQL. It's kind of like a SQL type syntax, which allows you to define your prediction parameters. So let's start with predicting the customer value over the next 30 days. So the way that we do that is like this. So we have our target, which you can see here.

So the target is what follows predict here. So we have the predict statement, we're saying predict whatever is within our target here. Okay, we have the sum of the transactions price over the next 0 to 30 days into the future. And also we defined days here. So that is our target.

But then we also have an entity, which is who or what are we making this prediction for? So here we're saying for each. So we're getting this sum of predictions broken down for each individual customer.