MCPcopy Create free account
hub / github.com/brainflow-dev/brainflow / predict

Method predict

src/ml/inc/restfulness_classifier.h:14–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12 }
13
14 int predict (double *data, int data_len, double *output, int *output_len) override
15 {
16 int res = MindfulnessClassifier::predict (data, data_len, output, output_len);
17 if (res != (int)BrainFlowExitCodes::STATUS_OK)
18 {
19 return res;
20 }
21 *output = 1.0 - (*output);
22 return res;
23 }
24};

Callers

nothing calls this directly

Calls 1

predictFunction · 0.50

Tested by

no test coverage detected