raybest4u / encog-java

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

FlatNetwork trained values don't get stored in the xml file #42

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Train a BasicNetwork like in the MarketTrain example using the new 
FlatNetwork mechanism
2. flatNetwork's weights[] array update correctly during training but at the 
end it should unflatten learned values to parent BasicNetwork. This doesn't 
happen in latest code. 
3.

What is the expected output? What do you see instead?
I see the original random weights and thresholds in the trained xml file 
instead of learned ones.

Please use labels and text to provide additional information.

Original issue reported on code.google.com by dmi...@gmail.com on 16 Sep 2010 at 4:23

GoogleCodeExporter commented 9 years ago
i was able to get it to work by adding:

network.getStructure().updateFlatNetwork();

at the end of the 
trainConsole(final Train train, final BasicNetwork network, final NeuralDataSe, 
trainingSet, final int minutes)
method
EncogUtility.java at line 229. Not sure if this is the right thing to do though

Original comment by dmi...@gmail.com on 16 Sep 2010 at 4:49

GoogleCodeExporter commented 9 years ago

Original comment by dmi...@gmail.com on 18 Sep 2010 at 8:02