Releases: sfu-cl-lab/FactorBase
Releases · sfu-cl-lab/FactorBase
latest version
FactorBase
The source code repository for the Factor Base system. The flat learner 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 to get the BN and MLN
- Modify
jar/config.cfg
with your own configuration according to format explained here - In
jar
folder, runjava -jar FactorBase.jar
- Converting the learned BN into MLN by running
java -jar MLNExporter.jar
- For big databases, you need to specify larger java heap size. For example:
java -jar -Xmx8G FactorBase.jar
Compile & Run
- Go into
src
folder - modify
config.cfg
with your own configuration according to format explained [here] 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
v1.1
Updated jar file.
New BayesBase Release
Quick Start:
- Download v1.0.zip
- Unzip
cd jar
- Edit
/jar/src/config.cfg
underjar
according to your database settings - in
jar
folder, runjava -jar RunBB.jar
- You'll find result files in
jar
folder and result data in your database
File .travis.yml shows a step-by-step running example. The running log is here