-
Notifications
You must be signed in to change notification settings - Fork 6
Description
@vidhiJain The contingency table code is in
https://github.com/sfu-cl-lab/FactorBase/blob/master/src/BayesBaseCT_SortMerge.java. It's called from RunBB.java as follows:
//assumes that dbname is in config file and that dbname_setup exists.
BayesBaseCT_SortMerge.CTGenerator();
- So it should not be difficult to just call it by itself. It would be progress if we could do that.
The key procedure is CTGenerator()
This is what builds the CT tables. Unfortunately Zhensong made a version of CTGenerator that is for working with groundings called target. Plus he merged this with the nontarget code. Also he merged it with a copy for the case where we are interested only in a subset of the functor nodes. My suggestion would be this.
-
Make a new branch.
-
In the new branch, make a copy of BayesBaseCT_SortMerge.java with all the target and subset stuff removed. I can probably even find an older version without the target stuff. See if we can run it then.
-
Then we can design a CT generator for groundings and subsets from scratch. I think a key move would be to change CT generator so that it takes as input the setup database rather than treat that as a global variable. Then we can use the CT generator with different (temporary) setup databases.