-
Notifications
You must be signed in to change notification settings - Fork 588
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
Bayesian Network Prediction, tuple index out of range #1109
Comments
Sorry you're encountering issues. Without more information, it's hard for me to diagnose the issue. Have you looked at the documentation and unit tests to make sure you're defining the network correctly? |
Hi, I have experienced the same issue and have produced a MWE to show the issue. I am using the following installation:
The following script reproduces the issue:
Running this script gives me the following error:
Does this look like an error in the input or a bug in the sum-product implementation? Thanks for all the help! |
I know this may be difficult to answer without much information, but I wanted to see if this issue has been seen before, as I had difficulty finding any past instances of my issue.
In running predict on a Bayesian network model and inputting a masked tensor with the correct size, I get the error:
"tuple index out of range"
This occurs in the following line (386) of factor_graph.py's function predict_proba.
shape[l+1] = message.shape[l+1]
I've been having trouble debugging this and any help would be greatly appreciated.
The text was updated successfully, but these errors were encountered: