Random variable atoms log

42 views
Skip to first unread message

Mayra Russo

unread,
Oct 4, 2021, 7:11:23 AM10/4/21
to PSL Users

Hello everyone!

We have recently started to work with PSL and are working on getting a better grasp on the inference process.
We are working with the examples using  CLI interface and PostgreSQL set-up, and were wondering how can we get the random variable atoms in the ADMMTermStore after each iteration in the inference process?

We would like to have an output log or similar of the contents of the ADMMTermStore after each iteration. At the moment, with our current knowledge of PSL and after going through the conversations here, the only way we can imagine doing this is  to create a local copy of PSL and modify the file ADMMReasoner.java to print out the terms after every iteration. Are we missing something here or are we on the right track?

We would really appreciate any feedback/input and thank you all in advance for any help!
Best,
Mayra


eriq.au...@gmail.com

unread,
Dec 17, 2021, 7:23:27 PM12/17/21
to PSL Users
Hey Mayra ,

So sorry I missed this question (it didn't go to my inbox).

If you want to access random variables during inference, I think modifying ADMMReasoner (as you mentioned) is the way to go.
It should be pretty easy to print out the consensus variables every iteration (or every compute period).
Then you can map consensus variables back to random variable atoms:

-eriq
Reply all
Reply to author
Forward
0 new messages