https://github.com/sfu-cl-lab/FactorBase
Raw File
Tip revision: 9a913fd5ec1a33de59e9ec0df4290641d6f4537e authored by Jeffery on 05 May 2016, 02:34:43 UTC
Do not wait for functorwapper to finish
Tip revision: 9a913fd
README.md
# BayesBase
[![Build Status](https://travis-ci.org/sfu-cl-lab/BayesBase.svg?branch=master)](https://travis-ci.org/sfu-cl-lab/BayesBase)   
The source code repository for the Bayes 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](http://www.cs.sfu.ca/~oschulte/BayesBase/BayesBase.html)  
##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.  
###Run .jar  
+ Modify `jar/src/config.cfg` with your own configuration according to format explained [here](http://www.cs.sfu.ca/~oschulte/BayesBase/options.html)  
+ In `jar` folder, run `java -jar RunBB.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](http://www.cs.sfu.ca/~oschulte/BayesBase/BayesBase.html)
back to top