This PR adds a generic env_fn() for creating sensible Gym environments from serializable input. Depending on the inputs, the function applies different wrappers automatically. It then registers this function as cpr-v0 Gym environment. Unlike the old core-v0 environment, cpr-v0 can be used with external tools like ray[rllib] and rl-zoo3.
This PR also adds shortcuts to relevant pre-configured protocols.
The new envs automatically set the number of defenders depending on alpha and gamma.
This PR adds a generic
env_fn()
for creating sensible Gym environments from serializable input. Depending on the inputs, the function applies different wrappers automatically. It then registers this function ascpr-v0
Gym environment. Unlike the oldcore-v0
environment,cpr-v0
can be used with external tools likeray[rllib]
andrl-zoo3
.This PR also adds shortcuts to relevant pre-configured protocols.
The new envs automatically set the number of defenders depending on alpha and gamma.
Examples