Couchbase Lite C++
Couchbase Lite C++ API
Loading...
Searching...
No Matches
cbl::Prediction Class Reference

Registers/unregisters predictive models by name. More...

#include <cbl++/Prediction.hh>

Static Public Member Functions

static void registerModel (std::string_view name, PredictiveModel model)
 Registers a predictive model with the given name.
static void unregisterModel (std::string_view name)
 Unregisters the model; LiteCore fires unregistered which frees the model.

Detailed Description

Registers/unregisters predictive models by name.

Note
ENTERPRISE EDITION ONLY

Member Function Documentation

◆ registerModel()

void cbl::Prediction::registerModel ( std::string_view name,
PredictiveModel model )
inlinestatic

Registers a predictive model with the given name.

Parameters
nameThe name used to refer to the model in a query's PREDICTION() function.
modelThe model implementation. Any matching callable is accepted (lambda, functor, ...).

◆ unregisterModel()

void cbl::Prediction::unregisterModel ( std::string_view name)
inlinestatic

Unregisters the model; LiteCore fires unregistered which frees the model.


The documentation for this class was generated from the following file: