Skip to content

Commit

Permalink
Fixed posterior aware export
Browse files Browse the repository at this point in the history
  • Loading branch information
TheGreatfpmK committed Apr 27, 2024
1 parent 3599b2c commit 5016eb5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion paynt/quotient/storm_pomdp_control.py
Original file line number Diff line number Diff line change
Expand Up @@ -700,6 +700,8 @@ def overapp_belief_value_analysis(self, number_of_beliefs):
analysed_beliefs += 1
belief_obs = self.quotient.pomdp.get_observation(list(belief.keys())[0])
belief_value = self.compute_belief_value(belief, belief_obs, export_values)
if belief_value is None:
continue
belief_values_dif[belief_id] = abs(self.belief_overapp_values[belief_id] - belief_value)

if belief_obs not in obs_differences.keys():
Expand Down Expand Up @@ -790,7 +792,10 @@ def parse_paynt_result(self, quotient):
if name.startswith('M'):
continue
name = name.strip('A()')
obs = name.split(',')[0]
if not paynt.quotient.pomdp.PomdpQuotient.posterior_aware:
obs = name.split(',')[0]
else:
obs = name.split(',')[1]
observation = self.quotient.observation_labels.index(obs)

option = self.latest_paynt_result.hole_options(hole)[0]
Expand Down

0 comments on commit 5016eb5

Please sign in to comment.