jeffheaton / encog-java-core

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

NormalizationHelper.normalizeInputVector() uses output normalizer #196

Closed andrewthomas28 closed 9 years ago

andrewthomas28 commented 9 years ago

I'm using NormalizationHelper.normalizeInputVector(), as shown in the Encog 3.3 Quick Start guide, section 2.1.5: "Using the model and denormalizing."

When called -- instead of getting an expected OneOfNNormalizer normalization like (0,1,0,0,...) -- instead I got an IndexedNormalizer normalization like (3).

With debugging I tracked this down to:

It looks like NormalizationHelper.normalizeInputVector() should be calling normalizeToVector() with isInput = true.

jeffheaton commented 9 years ago

Thank you for the bug report and code analysis. This should be resolved now.