Skip to content

sfu-cl-lab/FactorBase_Consistent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FactorBase_Consistent

Build Status
This is for Sajjad to try his changes based on his thesis research.

changes by Sajjad:

  • In CP.java, added merge sort to compute parentsum. The function name is UpdateParentSum.
  • Added Scores.java. Package for implementing different scores, normalized gain etc. Also uses global score cache. global score cache is used only for these new scores, not for the Tetrad classes.
  • Added global score cache (between different lattice points). Used in edu.cmu.tetrad.search, and the main package (several classes that use global cache).
  • For complete graph, change BayesBaseCDAG (from Zhensong), now uses the new CP.java with the new sort merge.

The source code repository for the Factor Base system. Most of the code are classes for CMU's Tetrad system. We may also add datasets if we get around to it.
For more information about this project, visit our project website
##How to Use
First you should import data into your database. We provide two sets of example datasets in testsql folder. Then you can either run .jar or compile the source yourself. If you want to visualize the BayesNet learned, you can run BIF_Generator
###Run .jar

  • Modify jar/cfg/subsetctcomputation.cfg with your own configuration according to format explained here
  • In jar folder, run java -jar FactorBase.jar
  • For big databases, you need to specify larger java heap size. For example: java -jar -Xmx8G FactorBase.jar

###Compile & Run

  • Go into src/cfg folder and modify subsetctcomputation.cfg
  • javac -cp ".:./lib/*" Config.java BZScriptRunner.java MakeSetup.java
  • javac -cp ".:./lib/*" RunBB.java
  • mkdir src
  • mv scripts src/
  • java -cp ".:./lib/*" MakeSetup
  • java -cp ".:./lib/*" RunBB
  • Optionally set up the target database and run FunctorWrapper
    • javac -cp ".:./lib/*" MakeTargetSetup.java
    • javac -cp ".:./lib/*" FunctorWrapper.java
    • java -cp ".:./lib/*" MakeTargetSetup
    • java -cp ".:./lib/*" FunctorWrapper

Project Specification

Please visit our project website

About

Sajjad's thesis code

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages