If I running single my script to recognition a charecter then Neral Network skip layer input, but if require it from server Hapi error occur at line: 366, 367.
And I resolved it:
this.biases[i][j] = layer[node] ? layer[node].bias : 0;this.weights[i][j] = layer[node] ? _(layer[node].weights).toArray() : 0;
If I running single my script to recognition a charecter then Neral Network skip layer input, but if require it from server Hapi error occur at line: 366, 367. And I resolved it:
this.biases[i][j] = layer[node] ? layer[node].bias : 0;
this.weights[i][j] = layer[node] ? _(layer[node].weights).toArray() : 0;