Skip to content
This repository has been archived by the owner on Sep 26, 2023. It is now read-only.

Cannot read property 'bias' of undefined neuralnetwork.js:366:58 when runing fn fromJSON with server Hapi #79

Open
TatChu opened this issue May 11, 2017 · 0 comments

Comments

@TatChu
Copy link

TatChu commented May 11, 2017

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;

@TatChu TatChu changed the title Cannot read property 'bias' of undefined neuralnetwork.js:366:58 when runing fn fromJson with server Hapi Cannot read property 'bias' of undefined neuralnetwork.js:366:58 when runing fn fromJSON with server Hapi May 11, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant