cazala / synaptic

architecture-free neural network library for node.js and the browser
http://caza.la/synaptic
Other
6.92k stars 666 forks source link

Neuron is not defined #330

Open Galaninho opened 5 years ago

Galaninho commented 5 years ago

Hi guys. I have a beginner problem. I set a network like that: image And then i try to change squashing function like that: image Or in a few other ways (i was trying different approaches), and the only resoult i can get is this: image "Neuron is not defined". Can you please tell me how am i supposed to do this? Greetings!

ghost commented 5 years ago

Thats an import issue, check how your require Synaptic.js section and try to call things with synaptic.Layer (or so) and not just Layer as Node seems to have an issue to find the relevant code section within Synaptic.js.

Galaninho commented 5 years ago

Thanks, solution was really simple, just needed to change this: image into this: image And then it works as it should by writing: image