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

Method prepare

rust_package/brainflow/src/ml_model.rs:26–29  ·  view source on GitHub ↗

Prepare classifier.

(&self)

Source from the content-addressed store, hash-verified

24
25 /// Prepare classifier.
26 pub fn prepare(&self) -> Result<()> {
27 let res = unsafe { ml_module::prepare(self.json_model_params.as_ptr()) };
28 Ok(check_brainflow_exit_code(res)?)
29 }
30
31 /// Calculate metric from data.
32 pub fn predict(&self, data: &mut [f64]) -> Result<Vec<f64>> {

Callers

nothing calls this directly

Calls 2

prepareFunction · 0.50

Tested by

no test coverage detected