Skip to content
/ MACH Public

Approximate satisfiability counting via hypergraphs

License

Notifications You must be signed in to change notification settings

mayukhdas/MACH

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Motif-based Approximate Counting via Hypergraphs (MACH)

This is the modular code for approximate satisfiability counting for First Order defininite clauses following the original paper - Das et al., AAAI 2019 [1]. This code implements the algorithm Motif-based Approximate Counting via Hypergraphs (MACH) as a plug & play module. It can either be used independently as an approximate counting library for definite clauses of your choice OR it can be integrated with your favourite Probabilistic Logic Learner or Lifted Inference code (preferably java code), to make them scalable. For technical details about the algorithm itself please refer to the cited paper.

Dependencies

There are several library dependencies that needs to be resolved. (The jar files are provided in a separate folder with the code as well)

  1. Commons Collections 4.0
  2. Google Guava 25.0 (Link)
  3. Hypergraph DB 1.3 (Link)
  4. AUC library (Use provided jar file)

How to use/integrate

  • Instantiate hyper.HyperGDB class : HyperGDB hgdb = new HyperGDB(<schema loc.>, <data loc.>, <database name>);
  • Call method ApproxCount() from the hgdb object: Double count = hgdb.ApproxCount(<clause>, <sense>);

[1]: M. Das, D. S. Dhami, G. Kunapuli, K. Kersting & S. Natarajan. Fast Relational Probabilistic Inference and Learning Approximate Counting via Hypergraphs. AAAI 2019

About

Approximate satisfiability counting via hypergraphs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages