Skip to content

Commit

Permalink
Merge branch 'randriu:master' into new-master
Browse files Browse the repository at this point in the history
  • Loading branch information
TheGreatfpmK authored Jan 9, 2024
2 parents f99ca87 + 9d692eb commit cf48ac8
Show file tree
Hide file tree
Showing 5 changed files with 275 additions and 780 deletions.
1 change: 0 additions & 1 deletion models/mdp/sketches/dodge/8-mod2-stagger/sketch.props

This file was deleted.

96 changes: 0 additions & 96 deletions models/mdp/sketches/dodge/8-mod2-stagger/sketch.templ

This file was deleted.

3 changes: 3 additions & 0 deletions paynt/quotient/mdp_family.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ def policy_to_state_valuation_actions(self, policy):
Create a representation for a policy that associated action labels with state valuations. States with only
one available action are omitted.
'''
policy,_ = policy
sv = self.quotient_mdp.state_valuations
state_valuation_to_action = []
for state,action in enumerate(policy):
Expand Down Expand Up @@ -166,6 +167,8 @@ def fix_and_apply_policy_to_family(self, family, policy):
for state in mdp.quotient_state_map:
policy_fixed[state] = policy[state]

mask = [state for state,action in enumerate(policy_fixed) if action is not None]
policy_fixed = (policy_fixed,mask)
return policy_fixed,mdp


Expand Down
Loading

0 comments on commit cf48ac8

Please sign in to comment.