Hi Erlang beginner here trying to implement a basic ANN (artificial neural network) following this tutorial from Wil Chung. The code is exactly as in his github repo.
Running this:
1> ann_test:run().
causes a bunch (five to be precise) errors like this:
=ERROR REPORT==== 18-Feb-2015::07:11:49 === Error in process <0.60.0> with exit value: {undef,[{ann,perceptron,[[],[],[]],[]}]}
=ERROR REPORT==== 18-Feb-2015::07:11:49 === Error in process <0.61.0> with exit value: {undef,[{ann,perceptron,[[],[],[]],[]}]}
Somehow spawning the processes here in ann_test.erl:
X1_pid = spawn(ann, perceptron, [[],[],[]]),
causes the trouble but I'm not sure how to trace it. Tried locating the issue with redbug pointing it at ann_test:run and ann:perceptron but it doesn't show anything. Also tried adding process_flag(trap_exit, true) into run() but nothing again. Also tried adding -compile(export_all) just in case.
Could anyone point me into right direction? Many thanks.