-
Notifications
You must be signed in to change notification settings - Fork 11
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
EVI outputs wrong probabilities #107
Comments
Thanks for the bug report, interesting we used to have a test to check EVI==MAR for full data. Maybe it was not catching this I will take a closer look into this example. Also note that we are working on refactoring the library and there is some big changes for version 0.4, and EVI and MAR are being rewritten specially the gpu versions.
Yesh the new version is less complicated and much cleaner, will add some more docs there :) |
I think EVI is not supposed to be run on non deterministic circuits. It's essentially a faster version of MAR for when data and circuit have no latents |
Good to know! Looking forward to this new version.
I see. Is this set to change after the refactor? If not, perhaps it might be a good idea to add a note referencing this to both the EVI manual entry and |
Current implementation of EVI is going to be gone probably, so both MAR and EVI will call the same function |
The next API for queries in CPU version:, we use missing to denote missing values, so the data would be type of loglikelihoods(pc::ProbCircuit, data::Matrix) GPU version: loglikelihoods(bpc::CuBitsProbCircuit, data::CuArray; batch_size) |
Hi,
Here's a MWE (up-to-date with both
master
branches of PCs and LCs):Interestingly, from the few examples I tested on my machine, this seems to only affect non-deterministic PCs. Granted, I haven't thoroughly examined the code yet to say this is a certainty. I'll take a look at it now and try to find a fix for this issue.
As a side note, it would perhaps be nice to have some in-code documentation. As it is, the code is very intimidating and kind of obfuscated (for me, at least). Helps with contributing to Juice. :)
Thanks
The text was updated successfully, but these errors were encountered: