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) void
setEffectInformation
(List<Predicate> effects) set all the effects for new action without configurationvoid
setEffectInformation
(Map<String, List<Predicate>> dependentGroups) void
updateModels
(Map<Predicate, Boolean> effectHolds) incrementally update the effect probabilitiesvoid
updateModels
(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
-