tuffy.infer
Class InferPartitioned

java.lang.Object
  extended by tuffy.infer.InferPartitioned

public class InferPartitioned
extends java.lang.Object

Scheduler of partition-aware inference.


Field Summary
(package private)  RDB db
           
(package private)  DataMover dmover
           
(package private)  Grounding grounding
           
(package private)  MarkovLogicNetwork mln
           
(package private)  java.util.HashMap<Component,java.util.ArrayList<Bucket>> partBuckets
           
(package private)  Partitioning parting
           
(package private)  PartitionScheme pmap
           
(package private)  java.util.ArrayList<Bucket> wholeBuckets
           
 
Constructor Summary
InferPartitioned(Grounding g, DataMover dmover)
           
 
Method Summary
 int getNumBuckets()
           
 PartitionScheme getPartitionScheme()
           
private  void groupPartitionsIntoBuckets()
          Group components/partitions to enable efficient batch loading and parallel inference.
 double infer(Settings s)
          Run partition-aware MAP inference.
private  void partition()
          Partition the MRF produced by the grounding process.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mln

MarkovLogicNetwork mln

dmover

DataMover dmover

db

RDB db

grounding

Grounding grounding

parting

Partitioning parting

pmap

PartitionScheme pmap

wholeBuckets

java.util.ArrayList<Bucket> wholeBuckets

partBuckets

java.util.HashMap<Component,java.util.ArrayList<Bucket>> partBuckets
Constructor Detail

InferPartitioned

public InferPartitioned(Grounding g,
                        DataMover dmover)
Method Detail

getPartitionScheme

public PartitionScheme getPartitionScheme()

partition

private void partition()
Partition the MRF produced by the grounding process.


getNumBuckets

public int getNumBuckets()

groupPartitionsIntoBuckets

private void groupPartitionsIntoBuckets()
Group components/partitions to enable efficient batch loading and parallel inference.


infer

public double infer(Settings s)
Run partition-aware MAP inference.