jeffheaton / encog-java-core

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

Exemple file SimpleK2 #150

Open pabouh opened 10 years ago

pabouh commented 10 years ago

It seems to have an error in the file : org.encog.examples.ml.bayesian.SimpleK2. When I run the example, this appears:

x2 probability : null Calculated P(+x2|+x1): NaN Final network structure: P(x1) P(x2) P(x3)

From the comment,we can at least inspect that "x2 probability" is 0.71. ?

toadmess commented 10 years ago

Also came across this in version 3.2.0 of the examples. It seems that the network just needs to be trained with something like..

while(!train.isTrainingDone()) { train.iteration(); }

..then things work as expected.