public class TrainingMap extends Object
Constructor and Description |
---|
TrainingMap(PersistedAtomManager rvAtomManager,
Database observedDB,
boolean fetchObservedPairs)
Initializes the training map of RandomVariableAtoms ObservedAtoms.
|
Modifier and Type | Method and Description |
---|---|
Iterable<Map.Entry<GroundAtom,GroundAtom>> |
getFullMap()
Get the full mapping of target to truth atoms (RVAs and observed).
|
Set<RandomVariableAtom> |
getLatentVariables()
Gets the latent variables seen by this manager.
|
Map<ObservedAtom,ObservedAtom> |
getObservedMap()
Get the mapping of observed to observed atoms.
|
Iterable<GroundAtom> |
getTargetAtoms() |
Iterable<GroundAtom> |
getTargetAtoms(boolean includeLatent)
Get all the target atoms (atoms for the RVA PAM) in one iterable.
|
Map<RandomVariableAtom,ObservedAtom> |
getTrainingMap()
Get the mapping of random to observed atoms.
|
Iterable<GroundAtom> |
getTruthAtoms()
Get all the truth atoms in one iterable.
|
public TrainingMap(PersistedAtomManager rvAtomManager, Database observedDB, boolean fetchObservedPairs)
rvAtomManager
- the atom manager containing the RandomVariableAtoms (any other atom types are ignored)observedDB
- the database containing matching ObservedAtomsfetchObservedPairs
- also fetch the observed atom counterparts for any truth atom that does not
have an associated RVA.public Map<RandomVariableAtom,ObservedAtom> getTrainingMap()
public Map<ObservedAtom,ObservedAtom> getObservedMap()
public Set<RandomVariableAtom> getLatentVariables()
public Iterable<GroundAtom> getTargetAtoms()
public Iterable<GroundAtom> getTargetAtoms(boolean includeLatent)
public Iterable<GroundAtom> getTruthAtoms()
public Iterable<Map.Entry<GroundAtom,GroundAtom>> getFullMap()
Copyright © 2018 University of California, Santa Cruz. All rights reserved.