Giter Site home page Giter Site logo

zhensongqian / factorbase Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sfu-cl-lab/factorbase

0.0 1.0 0.0 59.93 MB

The source code repository for the Factor Base system.

Home Page: http://www.cs.sfu.ca/~oschulte/BayesBase/BayesBase.html

SQLPL 0.03% Java 99.93% HTML 0.04%

factorbase's Introduction

FactorBase

Build Status
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, run java -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 and modify config.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

factorbase's People

Contributors

zhensongqian avatar zeruniverse avatar oschulte avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.