Skip to content

Commit

Permalink
made changes to reproduce commit 2217010
Browse files Browse the repository at this point in the history
  • Loading branch information
ferielamira1 committed May 13, 2024
1 parent 7ea5304 commit e497057
Show file tree
Hide file tree
Showing 25 changed files with 63 additions and 787 deletions.
3 changes: 0 additions & 3 deletions abm/agent/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -473,8 +473,6 @@ def projection_field(self, obstacles, keep_distance_info=False, non_expl_agents=
# extracting obstacle coordinates
obstacle_coords = [ob.position for ob in obstacles]



# if non-social cues can visually exclude social ones we also concatenate these to the obstacle coords
if non_expl_agents is not None:
len_social = len(obstacles)
Expand Down Expand Up @@ -598,7 +596,6 @@ def projection_field(self, obstacles, keep_distance_info=False, non_expl_agents=
v_field_post[phis < fov[0]] = 0
v_field_post[phis > fov[1]] = 0


return v_field_post

def rank_V_source_data(self, ranking_key, reverse=True):
Expand Down
6 changes: 5 additions & 1 deletion abm/app_madrl_foraging.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,11 @@ def start(parallel=True, headless=False):
sim = Simulation(parallel=parallel,**sim_params)

#sim.write_batch_size = 100
_ = sim.start_madqn()
if envconf["BRAIN_TYPE"] == "ideal":
_ = sim.start_heuristic()
else:
_ = sim.start_madqn()


if __name__ == '__main__':
start()
Expand Down
124 changes: 0 additions & 124 deletions abm/data/metaprotocol/experiments/MADRLExp0N3R100M10V2.py

This file was deleted.

124 changes: 0 additions & 124 deletions abm/data/metaprotocol/experiments/MADRLExp0N3R100M8V2.py

This file was deleted.

Loading

0 comments on commit e497057

Please sign in to comment.