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

Method prepare

nodejs_package/brainflow/ml_model.ts:167–174  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

165
166 // model methods
167 public prepare(): void
168 {
169 const res = MLModuleDLL.getInstance().prepare(this.inputJson);
170 if (res !== BrainFlowExitCodes.STATUS_OK)
171 {
172 throw new BrainFlowError (res, 'Could not prepare model');
173 }
174 }
175
176 public predict(data: number[]): number[]
177 {

Callers 1

runExampleFunction · 0.95

Calls 2

prepareMethod · 0.65
getInstanceMethod · 0.45

Tested by

no test coverage detected