Prepare classifier.
(&self)
| 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>> { |
nothing calls this directly
no test coverage detected