mjs513
Senior Member+
I am trying to convert a Neural Network sketch that was written for Processing, which is in JAVA. I go most of it converted using vectors instead of arraylists and it will compile and run on the Teensy 3.5. Unfortunately it then hangs on one construct. BTW: after trying to manually convert it I used a Java to C++ program which worked for some of the conversion but still had to make some changes. The construct that doesn't work is:
layers is in its own class as well as neurons. Tried a few variations but still having issues.
Program is too long to post so I am attaching the original Java file and the C++ file I am using:
Teensy Sketch: View attachment NN_AB.zip
Processing Sketch: View attachment sketch_180923a.zip
The problem child is in the neuralnetwork.cpp file.
Any help would be appreciated..
Thanks
Mike
Code:
layers[0]->neurons[0]->getConnectionCount()
Program is too long to post so I am attaching the original Java file and the C++ file I am using:
Teensy Sketch: View attachment NN_AB.zip
Processing Sketch: View attachment sketch_180923a.zip
The problem child is in the neuralnetwork.cpp file.
Any help would be appreciated..
Thanks
Mike