MCPcopy Create free account
hub / github.com/EdwardRaff/JSAT / updateWeight

Method updateWeight

JSAT/src/jsat/classifiers/neuralnetwork/SOM.java:308–313  ·  view source on GitHub ↗
(Vec input_i, Vec scratch, Vec weightVec, double scale)

Source from the content-addressed store, hash-verified

306 }
307
308 private void updateWeight(Vec input_i, Vec scratch, Vec weightVec, double scale)
309 {
310 input_i.copyTo(scratch);
311 scratch.mutableSubtract(weightVec);
312 weightVec.mutableAdd(scale, scratch);
313 }
314
315 /**
316 * Finds the Best Matching Unit

Callers 2

iterationStepMethod · 0.95
runMethod · 0.95

Calls 3

copyToMethod · 0.45
mutableSubtractMethod · 0.45
mutableAddMethod · 0.45

Tested by

no test coverage detected