Giter Club home page Giter Club logo

pgm2ssat's Introduction

PGM2SSAT

Stochastic Boolean Satisfiability (SSAT) encoding of Probabilistic Graphical Model (PGM) problems

  1. Files:
  • src: source code
  • .sh files: the running scripts
  1. PGMs to SSAT To convert the network (.uai file) and the corresponding query file (.map and .evid for MAP, .sdp for SDP) into SSAT formula (.ssat file for DC-SSAT, .sdimacs file for erSSAT and ClauSSat), the commands are as follows:
  • MAP: sh trans_map.sh ".uai file"
  • SDP: sh trans_sdp.sh ".uai file"
  • MEU: sh trand_id.sh ".uai file"
  1. Solvers' scripts (Please put the compiled binary file into bin/ directory)
  • DC-SSAT: sh dcssat.sh ".ssat file"
  • ClauSSat: sh claussat.sh ".sdimacs file"
  • erSSAT: sh erssat.sh ".sdimacs file"
  • bte: sh merlin_mmap.sh ".uai file"
  • limid: sh limid.sh ".uai file"
  • SDD: sh sdp2sdd.sh ".ssat file"
  1. Solvers' links:
  1. benchmarks: MAP, SDP, MEU computations are in the benchmarks.
  • .uai: Bayesian network or Influence diagram
  • .map: The y variables in MAP
  • .evid: The evidence in MAP
  • .sdp: The query variables in SDP
  1. Run benchmarks with multiple cores:
  • python3 src/run_all.py "script.sh" "directory" "extension" "core number"

    For example, we convert all the uai files into SSAT in benchmarks/sdp/ with 8 cores:

  • python3 src/run_all.py trans_sdp.sh benchmarks/sdp/ .uai 8

  1. Experiment flow:
  • bte, limid:
    • preprocess the networks with preprocess_"network".sh
    • Run the scripts with _prune.uai files
  • DC-SSAT, erSSAT, ClauSSat:
    • Convert .uai files into .ssat or .sdimacs files
    • Run the scripts with SSAT files
  • SDD:
    • Convert .uai files into .ssat files
    • Run the scripts with .ssat files

pgm2ssat's People

Contributors

qmo1222 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.