Skip to content
Snippets Groups Projects
Commit 12e52a2e authored by Erik Nygren's avatar Erik Nygren
Browse files

updated sequential agent

parent 1dd88043
No related branches found
No related tags found
No related merge requests found
......@@ -66,9 +66,9 @@ for trials in range(1, n_trials + 1):
for a in range(env.get_num_agents()):
if done[a]:
acting_agent += 1
print(acting_agent)
if a == acting_agent:
action = agent.act(obs[a], eps=0)
print(action)
else:
action = 4
action_dict.update({a: action})
......
......@@ -12,7 +12,7 @@ class OrderedAgent:
:param state: input is the observation of the agent
:return: returns an action
"""
_, distance, _ = split_tree(tree=np.array(state), num_features_per_node=9,
_, distance, _ = split_tree(tree=np.array(state), num_features_per_node=11,
current_depth=0)
distance = distance[1:]
min_dist = min_gt(distance, 0)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment