songcser / encog-java

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

Error Encog Workbench v3.2, Code Generation "Java" #69

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Import the file while following the example here:
http://www.heatonresearch.com/wiki/Workbench_Bayesian_Classification_Example
2. In the Analyst_Wizard, in "Code Generation", select "Java" and select "Embed 
Data"
3. When executing the iris.csv, in got the following error message: 

MESSAGE /*
We are very sorry but an unexpected error has occured.
Would you consider sending this information to us?
No personal information will be transmitted, just what you see below.
This information is very useful to us to make Encog a better program.
----------------------------------------------------------------------
Encog Version: 3.2.0
Encog Workbench Version: 3.2
Java Version: 1.7.0_09-icedtea
Java Vendor: Oracle Corporation
OS Name: Linux
OS Arch: amd64
OS Version: 3.7.3-101.fc17.x86_64
Core Count: 8
ISO3 Country: FRA
Display Country: France
Radix: ,
Grouping:  
----------------------------------------------------------------------
Exception: java.lang.ClassCastException: org.encog.ml.bayesian.BayesianNetwork 
cannot be cast to org.encog.ml.MLEncodable
org.encog.app.generate.EncogCodeGeneration.generateForMethod(EncogCodeGeneration
.java:228)
org.encog.app.generate.EncogCodeGeneration.generate(EncogCodeGeneration.java:192
)
org.encog.app.generate.EncogCodeGeneration.generate(EncogCodeGeneration.java:154
)
org.encog.app.analyst.commands.CmdCode.executeCommand(CmdCode.java:79)
org.encog.app.analyst.EncogAnalyst.executeTask(EncogAnalyst.java:509)
org.encog.app.analyst.EncogAnalyst.executeTask(EncogAnalyst.java:536)
org.encog.workbench.tabs.analyst.AnalystProgressTab.run(AnalystProgressTab.java:
347)
java.lang.Thread.run(Thread.java:722)

*/ END MESSAGE
I quickly tried to reproduce the bug, 
but it seem not systematic. 

Original issue reported on code.google.com by patrice....@etsmtl.net on 17 Oct 2013 at 4:32