Skip to content

How to get the value range of the state observation? #185

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
drmeerkat opened this issue May 11, 2021 · 0 comments
Open

How to get the value range of the state observation? #185

drmeerkat opened this issue May 11, 2021 · 0 comments

Comments

@drmeerkat
Copy link

Hi guys,

I'm trying to normalize the state_to_json() outputs. For example, in the pong game, the function returns something like,

{'reset': False,
 'p1_score': 0,
 'p2_score': 0,
 'ball': {'position': {'x': 75.0, 'y': 117.0},
  'velocity': {'x': -3.0, 'y': 1.0}},
 'p1_paddle': {'position': {'x': 140.0, 'y': 96.5},
  'velocity': {'x': 0.0, 'y': 0.5}},
 'p2_paddle': {'position': {'x': 16.0, 'y': 114.0},
  'velocity': {'x': 0.0, 'y': 0.0}}}

Is there a way to know the max/min value of each attribute?

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant