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

Method prepare

python_package/brainflow/ml_model.py:260–265  ·  view source on GitHub ↗

prepare classifier

(self)

Source from the content-addressed store, hash-verified

258 return string.tobytes().decode('utf-8')[0:string_len[0]]
259
260 def prepare(self) -> None:
261 """prepare classifier"""
262
263 res = MLModuleDLL.get_instance().prepare(self.serialized_params)
264 if res != BrainFlowExitCodes.STATUS_OK.value:
265 raise BrainFlowError('unable to prepare classifier', res)
266
267 def release(self) -> None:
268 """release classifier"""

Callers 3

mainFunction · 0.95
mainFunction · 0.95
mainFunction · 0.95

Calls 3

BrainFlowErrorClass · 0.70
prepareMethod · 0.65
get_instanceMethod · 0.45

Tested by

no test coverage detected