Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while importing libraries in Optuna Basic tutorial #88

Open
arun-dezerv opened this issue May 30, 2024 · 2 comments
Open

Error while importing libraries in Optuna Basic tutorial #88

arun-dezerv opened this issue May 30, 2024 · 2 comments

Comments

@arun-dezerv
Copy link

https://github.com/AI4Finance-Foundation/FinRL-Tutorials/blob/master/4-Optimization/FinRL_HyperparameterTuning_using_Optuna_basic.ipynb

I am getting the following error while recreating the above notebook

ModuleNotFoundError Traceback (most recent call last)
in <cell line: 21>()
19 # !pip install ray==1.13.0
20 import ray
---> 21 from finrl.agents.rllib.models import DRLAgent as DRLAgent_rllib
22 from finrl.meta.data_processor import DataProcessor
23 import joblib

/usr/local/lib/python3.10/dist-packages/finrl/agents/rllib/models.py in
3
4 import ray
----> 5 from ray.rllib.algorithms.a2c import a2c
6 from ray.rllib.algorithms.ddpg import ddpg
7 from ray.rllib.algorithms.ppo import ppo

ModuleNotFoundError: No module named 'ray.rllib.algorithms.a2c'

Please help

@arunbharadwaj2009
Copy link

I am using Google Colab to run the above code

@zhumingpassional
Copy link
Collaborator

rllib may be updated. I am not sure. pls refer to the tutorials of rllib.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants