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

Method new

rust_package/brainflow/src/ml_model.rs:19–23  ·  view source on GitHub ↗

Create a new MlModel.

(model_params: BrainFlowModelParams)

Source from the content-addressed store, hash-verified

17impl MlModel {
18 /// Create a new MlModel.
19 pub fn new(model_params: BrainFlowModelParams) -> Result<Self> {
20 let json_model_params = serde_json::to_string(&model_params)?;
21 let json_model_params = CString::new(json_model_params)?;
22 Ok(Self { model_params, json_model_params })
23 }
24
25 /// Prepare classifier.
26 pub fn prepare(&self) -> Result<()> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected