PredictiveQuery on your Graph. Predictive queries are written using the predictive query language (PQL), a concise SQL-like syntax that allows you to define a model for a new business problem. For information on the construction of a query string, please visit the Kumo documentation.
Writing a Query
In this example, we predict customer lifetime value — modeled as a regression problem to predict the maximum quantity of transactions for each customer over the next 30 days, given that the customer has made over 15 units worth of transactions in the past 7 days:Validating a Query
The SDK provides quick ways to confirm your query matches expectations before generating data.validate()checks for syntax errors and guides you toward a correct formulation.get_task_type()returns the task type of the query (e.g. binary classification, regression) so you can confirm the ML problem matches your intent.