Skip to content

t4/Discretiser method str_to_state depends on predicate order, change… - #40

Open
VictorAnTe wants to merge 1 commit into
HPAI-BSC:mainfrom
VictorAnTe:t4/Discretiser_method_-str_to_state-_depends_on_predicate_order
Open

VictorAnTe wants to merge 1 commit into
HPAI-BSC:mainfrom
VictorAnTe:t4/Discretiser_method_-str_to_state-_depends_on_predicate_order

Conversation

@VictorAnTe

Copy link
Copy Markdown

This PR resolves the issue where the Discretizer method str_to_state depended heavily on predicate order, which was causing loading errors.
To fix this, a default definition for both state_to_str and str_to_state has been added directly to the base Discretizer class (affecting all discretizers generated from the pigeon class). Additionally, changes to avoid this problem in the cartpole example discretizer and testing has been added.

…d also in the cartpole example and test both changes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant