-
Notifications
You must be signed in to change notification settings - Fork 4
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
HalfspaceToRandomBayesianFactor fails without non-negative constraints #98
Comments
From what I can see in the code, This issue could be caused by a wrong order in the |
Yes, this is solved if the following order is used:
|
No, this is not a valid sequence since At this point, the solutions are two: do not use the |
Ok, in that case let's do no use |
Then please do the same change for We know the two versions have very similar code, but the little differences didn't help us to find a way to unify them. |
When running approxLP, in the method
ch.idsia.crema.inference.approxlp1.Neighbourhood::random
uses the converter HalfspaceToRandomBayesianFactor, which would fail if the H-factor does not contain the non-negative constraints. However, this is not the case SeparateLinearToRandomBayesian, which was indeed the converter used in older crema versions.Is there any advantage of HalfspaceToRandomBayesianFactor wrt SeparateLinearToRandomBayesian? If not, we might need to change the converter for allowing H-factors without non-negative constraints. Or at least, set a flag for controlling which one is used.
Here you have a simple code where one works and the other does not.
@cbonesana, @davidhuber , what do you think?
The text was updated successfully, but these errors were encountered: