tuffy.infer
Class InferPartitioned
java.lang.Object
tuffy.infer.InferPartitioned
public class InferPartitioned
- extends java.lang.Object
Scheduler of partition-aware inference.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
InferPartitioned
public InferPartitioned(Grounding g,
DataMover dmover)
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.