Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CCDA doesn't have deterministic output #111

Open
RamSaw opened this issue Aug 1, 2018 · 2 comments
Open

CCDA doesn't have deterministic output #111

RamSaw opened this issue Aug 1, 2018 · 2 comments

Comments

@RamSaw
Copy link
Contributor

RamSaw commented Aug 1, 2018

On project ant_modified (from dataset in JB format) output isn't the same all the times when we run. If we run CCDA in the same session (for example second time without closing IDE) the outputs are the same. But if we close IDE and then run, the outputs differ sometimes. Probably the problem is as follows: PSI tree is built each time when we load project and this tree can differ from time to time (different order of processing files for example), CCDA is sensitive to order of entities that passed to it and that is why the output differs.

@Ivan-Veselov
Copy link
Collaborator

Ivan-Veselov commented Aug 6, 2018

Possible reasons: EntitySearcher every run produces entities in different order; new version of AlgorithmsUtil.getDominantClass has non-deterministic behaviour in case when dominant class is ambiguous.

@Ivan-Veselov
Copy link
Collaborator

New version of EntitySearcher that is introduced in #122 preserves order of entities.

@Ivan-Veselov Ivan-Veselov removed their assignment Aug 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants