encog-java-core icon indicating copy to clipboard operation
encog-java-core copied to clipboard

Bayesian Event hasChildren() is incorrect

Open MarcRoigVilamala opened this issue 7 years ago • 0 comments

BayesianEvent public boolean hasChildren() returns the value of hasParents().

I believe it should be return this.children.size();

https://github.com/encog/encog-java-core/blob/5b9d9a8c8b4299b49ef574f2743d21d5a9438a6c/src/main/java/org/encog/ml/bayesian/BayesianEvent.java#L166

MarcRoigVilamala avatar Dec 19 '17 06:12 MarcRoigVilamala