Closed Karlheinzniebuhr closed 1 year ago
Yes, it does. Please see the example below using MountainCar.
import gymnasium as gym # 0.28.1
from noisyenv.wrappers import RandomUniformScaleReward
base_env = gym.make("MountainCar-v0") # https://gymnasium.farama.org/environments/classic_control/mountain_car/
env = RandomUniformScaleReward(env=base_env, noise_rate=0.01, low=0.9, high=1.1)
observation, info = env.reset(seed=42)
env.step(env.action_space.sample())
I noticed that the paper only mentions applying the algorithms to continuous control MuJoCo OpenAI gym environments. Does noisyenv also work with discrete action spaces? In my case, I'm using a Custom Environment with two discrete action spaces.
example: