Does the Encog framework add extra neurons automaticly?

  • Thread starter Thread starter Superposed_Cat
  • Start date Start date
  • Tags Tags
    Framework Neurons
AI Thread Summary
The discussion revolves around the use of Encog for creating a neural network with a specific architecture: 1 input layer, 2 hidden layers, and 3 output layers. The user seeks to calculate the RAM required for the weights of this network, initially using a formula that considers the connections between layers. However, they express concern about the network's ability to fit any amount of data perfectly, questioning whether the network dynamically adds more neurons if it struggles to train effectively. Ultimately, they clarify that the network does not add neurons, as confirmed by using the method network.CalculateNeuronCount(), which indicates a fixed number of neurons.
Superposed_Cat
Messages
388
Reaction score
5
I recently started using Encog and used

BasicNetwork network = new BasicNetwork();
network.AddLayer(new BasicLayer(new ActivationSigmoid(), true, 1));
network.AddLayer(new BasicLayer(new ActivationSigmoid(), true, 2));
network.AddLayer(new BasicLayer(new ActivationSigmoid(), true, r.Length));
network.Structure.FinalizeStructure();
network.Reset();

to declare a network with 1 input , 2 hidden and 3 outputs, I need to know the amount of space ram required for the all the weights, usually it would be ((1*2)+2+(2*3))*((2^64)-1)/4 but this network seems to be able to fit any amount of data 100% accurately, suspicious. So I was wondering if maybe it adds more neurons if it can't train properly, does it do this? Any help apreciated.
 
  • Like
Likes Silicon Waffle
Technology news on Phys.org
Nevermind, it doesn't . One can see that it doesn't using network.CalculateNeuronCount();
 
Dear Peeps I have posted a few questions about programing on this sectio of the PF forum. I want to ask you veterans how you folks learn program in assembly and about computer architecture for the x86 family. In addition to finish learning C, I am also reading the book From bits to Gates to C and Beyond. In the book, it uses the mini LC3 assembly language. I also have books on assembly programming and computer architecture. The few famous ones i have are Computer Organization and...
I have a quick questions. I am going through a book on C programming on my own. Afterwards, I plan to go through something call data structures and algorithms on my own also in C. I also need to learn C++, Matlab and for personal interest Haskell. For the two topic of data structures and algorithms, I understand there are standard ones across all programming languages. After learning it through C, what would be the biggest issue when trying to implement the same data...
Back
Top