prediction

ENTERPRISE EDITION API

Creates prediction function with the given model name and input. When running a query with the prediction function, the corresponding predictive model registered to CouchbaseLite Database class will be called with the given input to predict the result.

The prediction result returned by the predictive model will be in a form dictionary object. To create an expression that refers to a property in the prediction result, the propertyPath(path) method of the created PredictionFunction object can be used.

Return

A PredictionFunction object.

Parameters

model

The predictive model name registered to the CouchbaseLite Database.

input

The expression evaluated to a dictionary.


ENTERPRISE EDITION API

The predictive model manager for registering and unregistering predictive models. This is part of the Public API.