prediction static method

PredictionFunction prediction(
  1. String model,
  2. ExpressionInterface input
)

Creates a prediction function expression with the given model and input.

This feature is only available in the Enterprise Edition.

When running a query with the prediction function, the corresponding registered PredictiveModel will be called with the given input to compute the result.

The result returned by the predictive model will be in the form of a dictionary. To create an expression that refers to a property in the result, PredictionFunction.property can be used.

Implementation

static PredictionFunction prediction(
  String model,
  ExpressionInterface input,
) =>
    PredictionFunctionImpl(model, input);