-
Notifications
You must be signed in to change notification settings - Fork 33
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
Cryptic error messages #27
Comments
When a factor graph contains a dangling edge, constructing a recognition factorization results in a following error message:
An example to reproduce the error: using ForneyLab
g = FactorGraph()
@RV a ~ GaussianMeanVariance(0.0,1.0)
@RV b ~ GaussianMeanVariance(a,1.0)
@RV c ~ GaussianMeanVariance(b,1.0)
@RV d ~ GaussianMeanVariance(c,1.0)
q = RecognitionFactorization(a,b,c) |
When marginal rule is not specified while constructing a structured algorithm, I get the following error message:
|
I'm building a 2D Gaussian mixture model demo. This is the current setup: Specify generative and recognition models
Execute inference algorithm
The error message I get is:
If you open up algo, you'll see:
So, GaussianMixture still thinks z is Bernoulli distributed (it's calling |
In order to improve the usability of ForneyLab it is important to return informative error messages. Often the search for the true origin of an error requires so much in-depth knowledge of ForneyLab internals that it becomes impossible to decrypt. Let's collect such errors here, together with a short description of how they arised. Separate issues or pull requests can be opened for improvement proposals.
The text was updated successfully, but these errors were encountered: