hakuhodo-technologies / scope-rl

SCOPE-RL: A python library for offline reinforcement learning, off-policy evaluation, and selection
https://scope-rl.readthedocs.io/en/latest/
Apache License 2.0
106 stars 10 forks source link

Upgrade d3rlpy #17

Closed takuma-sony closed 11 months ago

takuma-sony commented 1 year ago

Hi, I'm the author of d3rlpy. I see this repo using d3rlpy. Recently, I've made a major change to d3rlpy including some interface changes. I'd like to give a heads-up. The quick solution is to pin d3rlpy version to 1.1.1. Thanks!

aiueola commented 1 year ago

Hi @takuma-sony,

Thank you so much for sharing the updates on d3rlpy! I will first pin d3rlpy version to 1.1.1, and will then check compatibility with the latest version of d3rlpy. Thanks!

aiueola commented 1 year ago

[For those who have issues installing the package from pip]

We are currently working on updating the dependency as discussed above, but meanwhile, the temporal solution is to use scope-rl==0.1.3 and d3rlpy==1.1.1 on Python 3.9.

(1) for Mac (and perhaps for Windows as well)

1-0. Install Python 3.9 if necessary.

1-1. Setup virtual env.

pip install virtualenv
virtualenv -p python3.9 scope-venv

1-2. Upgrade pip, setuptools, and wheel.

pip install --upgrade pip
pip install --upgrade pip setuptools wheel

2-2. Install Cython and numpy to meet the d3rlpy's dependency.

pip install Cython==0.29.36
pip install numpy

2-3. Install SCOPE-RL.

pip install scope-rl==0.1.3

(2) for Colab

2-1. Install Python 3.9.

!sudo apt-get install python3.9

2-2. Setup venv.

!pip3 install virtualenv
!virtualenv -p python3.9 scope-venv
!source /content/scope-venv/bin/activate
!sudo apt-get install python3.9-distutils

2-3. Install SCOPE-RL.

!pip3 install scope-rl==0.1.3
aiueola commented 1 year ago

[Working log]

We are working on upgrading scope-rl to reflect recent changes in d3rlpy in the d3rlpy branch.

PR #18


aiueola commented 11 months ago

[Upgrade]

scope-rl==0.2.1, which is compatible with d3rlpy==2.0.4, is now available! 🎉

takuma-sony commented 11 months ago

Thanks for the update!