You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
expand node filter by add eq and hash for class State
def expand(node):
tried_sub_node_states = [
sub_node.get_state() for sub_node in node.get_children()
]
new_state = node.get_state().get_next_state_with_random_choice()
# Check until get the new state which has the different action from others
while new_state in tried_sub_node_states:
new_state = node.get_state().get_next_state_with_random_choice()
origin code not work for state object using default hash and not find same state in python3.8
The text was updated successfully, but these errors were encountered:
charleschen6
changed the title
monte_carlo_tree_search/mcst_example.py: class Node(object)/expand(node)
monte_carlo_tree_search/mcst_example.py: expand(node) method not work in checking new state already exists
Dec 31, 2019
expand node filter by add eq and hash for class State
origin code not work for state object using default hash and not find same state in python3.8
by add below codes will correct the error.
The text was updated successfully, but these errors were encountered: