MCPcopy
hub / github.com/BrainJS/brain.js / inputMatrixToRow

Method inputMatrixToRow

src/recurrent/matrix/equation.js:171–184  ·  view source on GitHub ↗

* connects a matrix via a row * @param {Matrix} m * @returns {Matrix}

(m)

Source from the content-addressed store, hash-verified

169 * @returns {Matrix}
170 */
171 inputMatrixToRow(m) {
172 let self = this;
173 let product = new Matrix(m.columns, 1);
174 this.states.push({
175 left: m,
176 get right () {
177 return self.inputRow;
178 },
179 product: product,
180 forwardFn: rowPluck,
181 backpropagationFn: rowPluckB
182 });
183 return product;
184 }
185
186 /**
187 * connects a matrix to sigmoid

Callers 4

bindEquationMethod · 0.95
browser.min.jsFile · 0.80
browser.jsFile · 0.80
equation.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected