jeffheaton / encog-java-core

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

Question for AnalystWizard.java (Bug?) #156

Closed wiemp closed 10 years ago

wiemp commented 10 years ago

Hello Jeff, I ran over an issue in the AnalystWizard.java:

I created an EncogWizard, where I have one column (in a CSV file), which I want to predict. The input and output column is the same column and I set "includeTargetField" to true. When I generate the network (FeedForward), the method "generateGenerate" is called, which returns the number of input columns as "0", because the input column is also the output column, where the flag "output" is true. This leads to an exception, when "generateFeedForward" gets called, because there, "hidden" is "0". I created a workaround, to increase "inputColumns" in "generateGenerate", when also "includeTargetField" is set. What should be the correct way, to handle this?

regards, Winfried

jeffheaton commented 10 years ago

Yes, I consider that a bug. I fixed it so that the input count is now correctly determined in this case. Thank you for the bug report.