Is there a more efficient way of building artificial neural nets other than using objects as nodes which reference other node objects?
-
The problem that I'm having is that once the neural net gets to a certain size my program crashes due to stack overflow.
-
Answer:
Free connectivity recurrent neural networks can be represented by the matrix of their synaptic weights. If you have N neurons in your network, the network can be represented by a NxN matrix where the (i,j) element is the connection weight from neuron i to neuron j (or 0 if there is no connection). (If your network has a layered structure, you should probably instead reflect that structure into the data and store layer-to-layer connectivities as individual matrices.) If your network is densely connected, the matrix representation will be vastly more memory-efficient than chained lists (which is what you describe in the title). If you have a sparse connectivity using a "naive" matrix representation will be a waste of space but then your matrix will be sparse too, and there are some specific tools and libraries to work with sparse matrices. Doing that also allows you to treat most of the oprtations on a neural network as a linear algebra problem. The only nonlinear part in a neural network is usually the activation function, and you can parallelize its application. All that is already implemented in many math libraries in many language, and is likely to result in much quicker code too.
Alexandre Coninx at Quora Visit the source
Related Q & A:
- Is there a way where u can send someone an email using hotmail and adding a small picture in the?Best solution by Yahoo! Answers
- What is a good, creative way to start an Autobiography?Best solution by Yahoo! Answers
- What is the fastest and most efficient way to heal a canker sore?Best solution by Yahoo! Answers
- What is a natural, inexpensive way to make my teeth white?Best solution by Yahoo! Answers
- What would be a good, honest way for me to make some money online?Best solution by Yahoo! Answers
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.