Registry Mirror
Skip to content

Inconsistency with shared reward args name  #114

Closed

Description

@KaleabTessera

In some places the shared reward param is called share_reward (e.g.

self.share_reward = kwargs.get("share_reward", False)
), while in others shared_rew (e.g.
https://github.com/proroklab/VectorizedMultiAgentSimulator/blob/f4f8a8964336a86e60bc06ae72b51a2ae0a1e4af/vmas/scenarios/multi_give_way.py#L28C39-L28C49).

Since there is no validation on the kwargs, it is easy to make a mistake with the name of this param, especially since it is not consistent. I think making all envs have the same param name would be useful.

Activity

  1. matteobettini commented on Jun 26, 2024

    @matteobettini
    Contributor

    Hey!

    Yes, I feel the same way.

    For backwards compatibility reasons I cannot change the names now as this would cause all sorts of issues, what I can do is adding kwargs checking so that if users pass a parameter that is not expected we raise an error (warning for now and eventually error)

    What do you think?

  2. KaleabTessera commented on Jun 26, 2024

    @KaleabTessera
    Author

    Yeah sounds good. I like your implementation 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions