Class EffectProbabilities
java.lang.Object
edu.tufts.hrilab.action.db.performanceMeasures.EffectProbabilities
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate GSON object to save ModelssampleEffects(Map<Predicate, Boolean> given) voidsetEffectInformation(List<Predicate> effects) set all the effects for new action without configurationvoidsetEffectInformation(Map<String, List<Predicate>> dependentGroups) voidupdateModels(Map<Predicate, Boolean> effectHolds) incrementally update the effect probabilitiesvoidupdateModels(Map<Predicate, Integer> newMarginalProbs, Map<String, List<Integer>> jointDistribution, Map<String, List<Predicate>> dependentGroups, int experience) batch update effect probabilities
-
Constructor Details
-
EffectProbabilities
public EffectProbabilities()
-
-
Method Details
-
setEffectInformation
set all the effects for new action without configuration- Parameters:
effects-
-
setEffectInformation
-
getEffects
-
updateModels
incrementally update the effect probabilities- Parameters:
effectHolds- map of whether each effect holds
-
updateModels
public void updateModels(Map<Predicate, Integer> newMarginalProbs, Map<String, List<Integer>> jointDistribution, Map<String, List<Predicate>> dependentGroups, int experience) batch update effect probabilities- Parameters:
newMarginalProbs- map from effect to number of times effect holdsjointDistribution- map from group of dependent effects to joint distribution
-
sampleEffects
-
sampleEffects
-
createEffectMeasuresGson
create GSON object to save Models
-