Views
No views yet
| Run | Mean Reward | Std Dev |
|---|---|---|
| Seed 0 | 0.33 | 0.08 |
| Seed 1 | 0.37 | 0.06 |
| Seed 2 | 0.38 | 0.08 |
| Seed 3 | 0.28 | 0.10 |
| Seed 4 | 0.39 | 0.05 |
1from stable_baselines3 import PPO
2model = PPO.load("0/ckpt_latest.zip")fluidgym==0.0.2. In order to use
them with newer versions of FluidGym, you need to wrap the environment with a
FlattenObservation wrapper as shown below:1import fluidgym
2from fluidgym.wrappers import FlattenObservation
3from stable_baselines3 import PPO
4
5env = fluidgym.make("RBC3D-easy-v0")
6env = FlattenObservation(env)
7model = PPO.load("path_to_model/ckpt_latest.zip")
8
9obs, info = env.reset(seed=42)
10
11action, _ = model.predict(obs, deterministic=True)
12obs, reward, terminated, truncated, info = env.step(action)