mirror of
https://github.com/wassname/ray.git
synced 2026-08-20 12:40:44 +08:00
[RLlib] Examples folder restructuring (Model examples; final part). (#8278)
- This PR completes any previously missing PyTorch Model counterparts to TFModels in examples/models. - It also makes sure, all example scripts in the rllib/examples folder are tested for both frameworks and learn the given task (this is often currently not checked) using a --as-test flag in connection with a --stop-reward.
This commit is contained in:
+2
-2
@@ -15,9 +15,9 @@ class RockPaperScissors(MultiAgentEnv):
|
||||
SPOCK = 4
|
||||
|
||||
def __init__(self, config):
|
||||
self.action_space = Discrete(3)
|
||||
self.observation_space = Discrete(3)
|
||||
self.sheldon_cooper = config.get("sheldon_cooper", False)
|
||||
self.action_space = Discrete(5 if self.sheldon_cooper else 3)
|
||||
self.observation_space = Discrete(5 if self.sheldon_cooper else 3)
|
||||
self.player1 = "player1"
|
||||
self.player2 = "player2"
|
||||
self.last_move = None
|
||||
|
||||
Reference in New Issue
Block a user