Skip to content

Bayesian Event hasChildren() is incorrect #252

@MarcRoigVilamala

Description

@MarcRoigVilamala

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions