Skip to content
프로젝트

소개

강화 학습을 위한 Python 라이브러리입니다.

AI 및 머신러닝

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

MushroomRL

Continuous Integration Documentation Status Maintainability Test Coverage

MushroomRL: Reinforcement Learning Python library.

MushroomRL is a Python Reinforcement Learning (RL) library whose modularity allows to easily use well-known Python libraries for tensor computation (e.g. PyTorch, Tensorflow) and RL benchmarks (e.g. Gymnasium, PyBullet, Deepmind Control Suite). It allows to perform RL experiments in a simple way providing classical RL algorithms (e.g. Q-Learning, SARSA, FQI), and deep RL algorithms (e.g. DQN, DDPG, SAC, TD3, TRPO, PPO).

Full documentation and tutorials available here.

You can do a minimal installation of MushroomRL with:

pip install mushroom-rl

MushroomRL contains also some optional components e.g., support for Gymnasium environments, Atari 2600 games from the Arcade Learning Environment, and the support for physics simulators such as Pybullet and MuJoCo. Support for these classes is not enabled by default.

To install the whole set of features, you will need additional packages installed. You can install everything by running:

pip install mushroom-rl[all]

This will install every dependency of MushroomRL, except Box2D, PyBullet and Isaac Sim. For ubuntu>20.04, you may need to install pygame and gym dependencies:

sudo apt -y install libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-ttf2.0-dev \
                 libsdl1.2-dev libsmpeg-dev libportmidi-dev ffmpeg libswscale-dev \
                 libavformat-dev libavcodec-dev swig

Notice that you still need to install some of these dependencies for different operating systems, e.g. swig for macOS

On macOS, opening the MuJoCo viewer window requires running your script with mjpython instead of python.

Below is the code that you need to run to install the live monitors dependencies:

pip install mushroom-rl[monitors]

Support for NVIDIA Isaac Sim environments is provided by a separate extra, which is deliberately not part of [all]:

pip install mushroom-rl[isaacsim]

Install it in a dedicated environment, never alongside the other extras:

  • Isaac Sim supports Python 3.12 only (its metadata declares Requires-Python: ==3.12.*), whereas MushroomRL also supports Python 3.11.
  • isaacsim-core pins exact versions of packages shared with the other extras (mujoco==3.11.0, mujoco-warp==3.11.0, torch==2.11.0, scipy==1.17.0), so they cannot move past those versions in the same environment.

Running the Isaac Sim environments additionally requires an NVIDIA RTX GPU. They are therefore not covered by continuous integration, and their tests are skipped unless isaacsim can be imported.

You can also perform a local editable installation by using:

pip install -e .

To install also optional dependencies:

pip install -e .[all]

To run experiments, MushroomRL requires a script file that provides the necessary information for the experiment. Follow the scripts in the "examples" folder to have an idea of how an experiment can be run.

For instance, to run a quick experiment with one of the provided example scripts, run:

python3 examples/papers/car_on_hill_fqi.py

If you are using MushroomRL for your scientific publications, please cite:

@article{JMLR:v22:18-056,
    author  = {Carlo D'Eramo and Davide Tateo and Andrea Bonarini and Marcello Restelli and Jan Peters},
    title   = {MushroomRL: Simplifying Reinforcement Learning Research},
    journal = {Journal of Machine Learning Research},
    year    = {2021},
    volume  = {22},
    number  = {131},
    pages   = {1-5},
    url     = {http://jmlr.org/papers/v22/18-056.html}
}

For any question, drop an e-mail at [email protected].

Follow us on Twitter @Mushroom_RL!

관련 프로젝트 살펴보기

불러오는 중…