hoiyoo / encog-java

Automatically exported from code.google.com/p/encog-java
0 stars 0 forks source link

Incorrect order in layers after finalizeStructure(), if more than 2 hidden layers are used with feed forward network. #37

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.
    final BasicNetwork net = new BasicNetwork();
    net.addLayer(new BasicLayer(new ActivationTANH(), false, 2)); // L1
    net.addLayer(new BasicLayer(new ActivationTANH(), false, 3)); // L2
    net.addLayer(new BasicLayer(new ActivationTANH(), false, 5)); // L3
    net.addLayer(new BasicLayer(new ActivationTANH(), false, 3)); // L4
    net.addLayer(new BasicLayer(new ActivationLinear(), false, 2)); // L5
    net.getStructure().finalizeStructure();
    net.reset();

What is the expected output? What do you see instead?

    net.getStructure().getLayers() returns list of layers in order:
    L5 L4 L2 L3 L1 expected: L5 L4 L3 L2 L1

What version of the product are you using? On what operating system?
    Release is 2.3.0 on Windows XP Prof.

Please provide any additional information below.
    I think org.encog.neural.networks.structure.LayerComparator does not compare correctly. If you have any questions, please contact me at stefan_at_srichter_dot_com

Original issue reported on code.google.com by ste...@srichter.com on 8 Jun 2010 at 12:26

GoogleCodeExporter commented 9 years ago
This was fixed in a previous version.

Original comment by heatonre...@gmail.com on 23 Sep 2010 at 1:05