Farama-Foundation / PettingZoo

An API standard for multi-agent reinforcement learning environments, with popular reference environments and related utilities
https://pettingzoo.farama.org
Other
2.62k stars 414 forks source link

[Question] Env clipped action which has already inside the space #1151

Closed trunghng closed 10 months ago

trunghng commented 10 months ago

Question

Greeting!

I'm using the MPE environment as the sandbox to train RL agents and keep getting this warning [WARNING]: Received an action [-0.01375389 -0.08684946 0.34249973 -0.05312676 -0.09561076] that was outside action space Box(0.0, 1.0, (5,), float32). Environment is clipping to space

I found that there was a similar issue. Tried to fix the type of the action but sill got the error. Here is the action with its dtype when being printed out action: [-0.01375389 -0.08684946 0.34249973 -0.05312676 -0.09561076] float32

If you have any idea of how to fix this please let me know. Thank you in advanced!

trunghng commented 10 months ago

My bad, it is clearly outside of the box. I'm gonna close the issue.