Skip to content

Commit

Permalink
update FAQs
Browse files Browse the repository at this point in the history
  • Loading branch information
aiueola committed Jul 24, 2023
1 parent ea029c2 commit 7558bbe
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions FrequentlyAskedQuestions.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ Q. xxx environment does not work on d3rlpy, which is used for model training. Ho

A. A. Both `scope-rl>=0.2.1` and `d3rlpy>=2.0.2` supports compatibility with `gym>=0.26.0` and `gymnasium` environments. The source is available in the `main` branch.

If you want to use the older interface of `d3rlpy`, make sure to use `scope-rl==0.1.2` and `d3rlpy==1.1.1`. Then, please use `OldGymAPIWrapper` provided in `scope_rl/utils.py` to enable the use of d3rlpy. The source is available in the `depreciated` branch.
If you want to use the older interface of `d3rlpy`, make sure to use `scope-rl==0.1.3` and `d3rlpy==1.1.1`. Then, please use `OldGymAPIWrapper` provided in `scope_rl/utils.py` to enable the use of d3rlpy. The source is available in the `depreciated` branch.
```Python
from scope_rl.utils import OldGymAPIWrapper
env = gym.make("xxx_v0") # compatible with gym>=0.26.2 and SCOPE-RL
env_ = OldGymAPIWrapper(env) # compatible with gym<0.26.2 and d3rlpy
env = gym.make("xxx_v0") # compatible with gym>=0.26.2 and scope-rl==0.1.3
env_ = OldGymAPIWrapper(env) # compatible with gym<0.26.2 and d3rlpy==1.1.1
```
4 changes: 2 additions & 2 deletions docs/documentation/frequently_asked_questions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@ To solve this incompatibility, please use `NewGymAPIWrapper` provided in `scope_

A. Both `scope-rl>=0.2.1` and `d3rlpy>=2.0.2` supports compatibility with `gym>=0.26.0` and `gymnasium` environments. The source is available in the `main` branch.

If you want to use the older interface of `d3rlpy`, make sure to use `scope-rl==0.1.2` and `d3rlpy==1.1.1`. Then, please use `OldGymAPIWrapper` provided in `scope_rl/utils.py` to enable the use of d3rlpy. The source is available in the `depreciated` branch.
If you want to use the older interface of `d3rlpy`, make sure to use `scope-rl==0.1.3` and `d3rlpy==1.1.1`. Then, please use `OldGymAPIWrapper` provided in `scope_rl/utils.py` to enable the use of d3rlpy. The source is available in the `depreciated` branch.

.. code-block:: Python
from scope_rl.utils import OldGymAPIWrapper
env = gym.make("xxx_v0") # compatible with gym>=0.26.2 and scope-rl==0.1.2
env = gym.make("xxx_v0") # compatible with gym>=0.26.2 and scope-rl==0.1.3
env_ = OldGymAPIWrapper(env) # compatible with gym<0.26.2 and d3rlpy==1.1.1
Expand Down

0 comments on commit 7558bbe

Please sign in to comment.