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.cfgwith your own configuration according to format explained here - In
jarfolder, 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
srcfolder - modify
config.cfgwith your own configuration according to format explained [here] javac -cp ".:./lib/*" Config.java BZScriptRunner.java MakeSetup.javajavac -cp ".:./lib/*" RunBB.javamkdir srcmv scripts src/java -cp ".:./lib/*" MakeSetupjava -cp ".:./lib/*" RunBB- Optionally set up the target database and run FunctorWrapper
javac -cp ".:./lib/*" MakeTargetSetup.javajavac -cp ".:./lib/*" FunctorWrapper.javajava -cp ".:./lib/*" MakeTargetSetupjava -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.cfgunderjaraccording to your database settings - in
jarfolder, runjava -jar RunBB.jar - You'll find result files in
jarfolder and result data in your database
File .travis.yml shows a step-by-step running example. The running log is here