public class TrainingMap extends Object
Constructor and Description |
---|
TrainingMap(PersistedAtomManager targets,
Database truthDatabase)
Initializes the training map of RandomVariableAtoms ObservedAtoms.
|
Modifier and Type | Method and Description |
---|---|
Iterable<RandomVariableAtom> |
getAllPredictions()
Get all the predictions (unobserved targets).
|
Iterable<GroundAtom> |
getAllTargets()
Get all atoms that appeared in the target database.
|
Iterable<GroundAtom> |
getAllTruths()
Get all atoms that appeared in the truth database.
|
Iterable<Map.Entry<GroundAtom,GroundAtom>> |
getFullMap()
Get the full mapping of target to truth atoms (unobserved and observed).
|
Map<RandomVariableAtom,ObservedAtom> |
getLabelMap()
Get the mapping of unobserved targets to truth atoms.
|
List<RandomVariableAtom> |
getLatentVariables()
Gets the latent variables (unobserved targets without a truth atom).
|
List<ObservedAtom> |
getMissingLabels()
Gets observed targets that do not have an associated observed truth atom.
|
List<ObservedAtom> |
getMissingTargets()
Gets observed truth atoms that do not have an associated target atom.
|
Map<ObservedAtom,ObservedAtom> |
getObservedMap()
Get the mapping of observed targets to truth atoms.
|
String |
toString() |
public TrainingMap(PersistedAtomManager targets, Database truthDatabase)
targets
- the atom manager containing the RandomVariableAtoms (any other atom types are ignored)truthDatabase
- the database containing matching ObservedAtomspublic Map<RandomVariableAtom,ObservedAtom> getLabelMap()
public Map<ObservedAtom,ObservedAtom> getObservedMap()
public List<RandomVariableAtom> getLatentVariables()
public List<ObservedAtom> getMissingLabels()
public List<ObservedAtom> getMissingTargets()
public Iterable<RandomVariableAtom> getAllPredictions()
public Iterable<GroundAtom> getAllTargets()
public Iterable<GroundAtom> getAllTruths()
public Iterable<Map.Entry<GroundAtom,GroundAtom>> getFullMap()
Copyright © 2020 University of California, Santa Cruz. All rights reserved.