Skip to content
Snippets Groups Projects
Commit c07b470f authored by u214892's avatar u214892
Browse files

#42 run baselines in ci

parent 446e6987
No related branches found
No related tags found
No related merge requests found
...@@ -162,12 +162,13 @@ def main(argv): ...@@ -162,12 +162,13 @@ def main(argv):
# print(all_rewards,action) # print(all_rewards,action)
obs_original = next_obs.copy() obs_original = next_obs.copy()
for a in range(env.get_num_agents()): for a in range(env.get_num_agents()):
data, distance, agent_data = split_tree(tree=np.array(next_obs[a]), a = 5
current_depth=0) # data, distance, agent_data = split_tree(tree=np.array(next_obs[a]),
data = norm_obs_clip(data) # current_depth=0)
distance = norm_obs_clip(distance) # data = norm_obs_clip(data)
agent_data = np.clip(agent_data, -1, 1) # distance = norm_obs_clip(distance)
next_obs[a] = np.concatenate((np.concatenate((data, distance)), agent_data)) # agent_data = np.clip(agent_data, -1, 1)
# next_obs[a] = np.concatenate((np.concatenate((data, distance)), agent_data))
time_obs.append(next_obs) time_obs.append(next_obs)
# #
# # Update replay buffer and train agent # # Update replay buffer and train agent
......
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