@FunctionalInterface public interface PredictiveModel
PredictiveModel protocol that allows to integrate machine learning model into CouchbaseLite Query via invoking the Function.prediction() function.
Modifier and Type | Method and Description |
---|---|
Dictionary |
predict(Dictionary input)
The prediction callback called when invoking the Function.prediction() function
inside a query or an index.
|
@Nullable Dictionary predict(@NonNull Dictionary input)
input
- The input dictionary.