PKU-Alignment / safety-gymnasium

NeurIPS 2023: Safety-Gymnasium: A Unified Safe Reinforcement Learning Benchmark
https://safety-gymnasium.readthedocs.io/en/latest/
Apache License 2.0
392 stars 52 forks source link

[Question] How to get the reward and cost design for each environment? #91

Closed Chenrf1121 closed 5 months ago

Chenrf1121 commented 11 months ago

Required prerequisites

Questions

I am curious about the rewards and costs in tasks. I want to know when the adding rewards will be triggered and when the costs will be increased. Which file should I check? Like "SafetyPointGoal1-v0"

muchvo commented 11 months ago

You can refer to this link for a more detailed understanding. Essentially, the task is associated with the Builder class. The Builder class constructs a standard process framework for some tasks, enabling fixed behaviors to be triggered. Therefore, you can understand that when safety_gymnaisum.make is called, it returns an object of the Builder class, which contains an object related to the task.