raybest4u / encog-java

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

Can't restructure a BasicNetwork in the workbench #65

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Open a previously created network in the workbench editor and click the 
"Restructure" button.
2. Apply any significant change (preferably the output function as this shows a 
second problem).
3. Click the "OK" button.  

There will be no change to the html display (or the underlying network).

Exists in trunk (currently r3545)

It appears that MLMethodTab.restructureFeedforward does not set the output 
activation function of the pattern AND does not assign the created BasicNetwork 
to anything.

I don't think this can be corrected by simply assigning the newly created 
pattern to the "method" attribute, because the *inherited* close method in 
EncogCommonTab doesn't have any way to pass the newly created network to the 
ProjectEGFile's "obj" attribute.

FYI, as a temporary workaround in my own copy of the code, I copied and pasted 
the close method from EncogCommonTab into the MLMethodTab subclass and changed 
it to invoke the ProjectEGFile.save(MLMethod method) instead of the 
ProjectEGFile.save().

Original issue reported on code.google.com by hifranks...@gmail.com on 17 Jun 2011 at 4:12

GoogleCodeExporter commented 9 years ago
Thanks for the report!  I fixed this bug and the change has been checked in.  
You are right a simple set to the method attribute did not fix it! But it seems 
to work now.

Original comment by JeffHeat...@gmail.com on 14 Jul 2011 at 1:44

GoogleCodeExporter commented 9 years ago

Original comment by JeffHeat...@gmail.com on 14 Jul 2011 at 1:44