mirror of
https://github.com/saymrwulf/stable-baselines3.git
synced 2026-05-16 21:10:08 +00:00
* Add `system_env_info` * Add `print_system_info` to load and store system info at save time * Remove TODO * Rename to `get_system_info` * Import as sb3 for consistency * Update changelog * Add warning for old SB3 versions * Use underscore litteral for more clarity
22 lines
815 B
Python
22 lines
815 B
Python
import os
|
|
|
|
from stable_baselines3.a2c import A2C
|
|
from stable_baselines3.common.utils import get_system_info
|
|
from stable_baselines3.ddpg import DDPG
|
|
from stable_baselines3.dqn import DQN
|
|
from stable_baselines3.her.her_replay_buffer import HerReplayBuffer
|
|
from stable_baselines3.ppo import PPO
|
|
from stable_baselines3.sac import SAC
|
|
from stable_baselines3.td3 import TD3
|
|
|
|
# Read version from file
|
|
version_file = os.path.join(os.path.dirname(__file__), "version.txt")
|
|
with open(version_file, "r") as file_handler:
|
|
__version__ = file_handler.read().strip()
|
|
|
|
|
|
def HER(*args, **kwargs):
|
|
raise ImportError(
|
|
"Since Stable Baselines 2.1.0, `HER` is now a replay buffer class `HerReplayBuffer`.\n "
|
|
"Please check the documentation for more information: https://stable-baselines3.readthedocs.io/"
|
|
)
|