mirror of
https://github.com/Farama-Foundation/Gymnasium.git
synced 2025-08-29 17:45:07 +00:00
Generalized Kelly Coinflip game: right, observation space has to match the sufficient statistics...
This commit is contained in:
@@ -85,7 +85,10 @@ class KellyCoinflipGeneralizedEnv(gym.Env):
|
||||
self.action_space = spaces.Discrete(maxWealth*100)
|
||||
self.observation_space = spaces.Tuple((
|
||||
spaces.Discrete(maxWealth*100+1),
|
||||
spaces.Discrete(maxRounds+1)))
|
||||
spaces.Discrete(maxRounds+1), # rounds elapsed
|
||||
spaces.Discrete(maxRounds+1), # wins
|
||||
spaces.Discrete(maxRounds+1), # losses
|
||||
spaces.Discrete(maxWealth*100+1))) # maximum observed wealth
|
||||
self.reward_range = (0, maxWealth)
|
||||
self.edge = edge
|
||||
self.wealth = initialWealth
|
||||
|
Reference in New Issue
Block a user