jeffheaton / encog-java-core

http://www.heatonresearch.com/encog
Other
742 stars 268 forks source link

Workbench: task-evaluate ArrayIndexOutOfBoundsException after closing .ega #93

Closed PetrToman closed 12 years ago

PetrToman commented 12 years ago
  1. In Workbench, train a Bayesian network by Analyst (using iris dataset, for example).
  2. Close all tabs.
  3. Reopen .ega file.
  4. Execute task-evaluate -> the following exception will be thrown:
Exception: java.lang.ArrayIndexOutOfBoundsException: 5
org.encog.app.analyst.csv.AnalystEvaluateCSV.process(AnalystEvaluateCSV.java:237)
org.encog.app.analyst.commands.CmdEvaluate.executeCommand(CmdEvaluate.java:106)
org.encog.app.analyst.EncogAnalyst.executeTask(EncogAnalyst.java:487)
org.encog.app.analyst.EncogAnalyst.executeTask(EncogAnalyst.java:514)
org.encog.workbench.tabs.analyst.AnalystProgressTab.run(AnalystProgressTab.java:334)
java.lang.Thread.run(Unknown Source)
jeffheaton commented 12 years ago

Good catch! One of the values on the analyst was not initialized when you went directly to evaluate.

Also just checked in fix for C#