Browse Source

debug printout for len of shield

refactoring
sp 8 months ago
parent
commit
b5dd43ca23
  1. 1
      examples/shields/rl/utils.py

1
examples/shields/rl/utils.py

@ -135,6 +135,7 @@ class MiniGridShieldHandler(ShieldHandler):
action_dictionary[state] = get_allowed_actions_mask([choice_labeling.get_labels_of_choice(model.get_choice_index(stateID, choice[1])) for choice in choices]) action_dictionary[state] = get_allowed_actions_mask([choice_labeling.get_labels_of_choice(model.get_choice_index(stateID, choice[1])) for choice in choices])
toc() toc()
print(f"{len(action_dictionary)} states in the shield")
return action_dictionary return action_dictionary

Loading…
Cancel
Save