-
Notifications
You must be signed in to change notification settings - Fork 3
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
Duplicating an SPN #71
Comments
Could you show me the traceback of the error? Where in the code is it happening? Also, I was wondering why you want to duplicate SPNs? Do they take in different IVs? In that case you could do:
|
I will post the traceback later, but for me right now, I would like to use a single I am not sure how you to do step 2 as you described. Right now I construct the SPN structure via dense generation and calling dense generator again might result in a different structure. Therefore I need to copy the structure of a generated SPN. |
Another reason I was duplicating SPNs is because I need to infer the value of some indicators in the |
Here is the traceback:
|
So, you need this feature to work on feature/convspn specifically? I will merge |
I see. Sounds like you know why that happens? |
TL;DR: how should I duplicate an SPN? I have a big
IVs
and I want the duplicated SPNs to take different subsets of indicators from this bigIVs
. How should I do that?I am now on commit a649c62 (09/10/2018) "batch noise now shuffles instead of rolls".
In a prior version of the libspn that I used (on the master branch), I was able to duplicate an SPN by using my own
compute_graph_up
function, pasted below. The key difference is that this function deals with the case where there are indicator variables specified in the format of a tuple (node, indices).Then I wrote a function that uses
mod_compute_graph_up
which actually copies the entire structure and parameters of a given SPN, while keeping the same inputs. This worked well before, and I have documented how it works. But now after I have switched to newer code (a649c62), my SPN duplication code does not work any more. I got an error:I think this is due to some changes to the SPN structure internally. Then, how should I duplicate an SPN? I have a big
IVs
and I want the duplicated SPNs to take different subsets of indicators from this bigIVs
. How should I do that?cc: @jostosh @pronobis
(apologies for keep posting issues)
The text was updated successfully, but these errors were encountered: