mirror of
https://github.com/illiumst/marl-factory-grid.git
synced 2025-09-15 07:23:59 +02:00
new hparams
This commit is contained in:
@@ -265,7 +265,6 @@ class BaseFactory(gym.Env):
|
||||
# d = {key: val._asdict() if hasattr(val, '_asdict') else val for key, val in self.__dict__.items()
|
||||
d = {key: val for key, val in self.__dict__.items() if not key.startswith('_') and not key.startswith('__')}
|
||||
filepath.parent.mkdir(parents=True, exist_ok=True)
|
||||
super(BaseFactory, self).save_params()
|
||||
with filepath.open('w') as f:
|
||||
yaml.dump(d, f)
|
||||
# pickle.dump(d, f, protocol=pickle.HIGHEST_PROTOCOL)
|
||||
|
@@ -192,11 +192,6 @@ if __name__ == '__main__':
|
||||
factory = SimpleFactory(movement_properties=move_props, dirt_properties=dirt_props, n_agents=10,
|
||||
combin_agent_slices_in_obs=True, omit_agent_slice_in_obs=False, level_name='rooms')
|
||||
|
||||
# dirt_props = DirtProperties()
|
||||
# move_props = MovementProperties(allow_diagonal_movement=False, allow_no_op=False)
|
||||
# factory = SimpleFactory(n_agents=2, dirt_properties=dirt_props, movement_properties=move_props, level='rooms',
|
||||
# pomdp_radius=2)
|
||||
|
||||
n_actions = factory.action_space.n - 1
|
||||
|
||||
for epoch in range(100):
|
||||
|
Reference in New Issue
Block a user