AI4Finance-Foundation / FinRL

FinRL: Financial Reinforcement Learning. 🔥
https://ai4finance.org
MIT License
9.48k stars 2.31k forks source link

Crypto_Feature_Importance.ipynb #960

Open zillionsinternational opened 1 year ago

zillionsinternational commented 1 year ago

ModuleNotFoundError Traceback (most recent call last) in <cell line: 15>() 13 import numpy as np 14 import matplotlib.pyplot as plt ---> 15 from meta.data_processor import DataProcessor 16 17 import torch

ModuleNotFoundError: No module named 'meta'

I installed the Meta Library but same error message

zillionsinternational commented 1 year ago

ModuleNotFoundError: No module named 'meta.data_processor'

zillionsinternational commented 1 year ago

Any help/support please ?

eervin123 commented 11 months ago

@zillionsinternational I had this issue as well. I was using google colab, so I'm unsure if this will work for you. It did work for me.

right before the imports cell block add a new code cell and %cd /FinRL-Meta/

image

You will also likely have a problem with scikit-learn and the import of SMOTE from imblearn. If that happens you need to downgrade your scikit-learn to less than 1.3 so add this to your last line of the !pip installs !pip install scikit-learn==1.2.2 # imblearn SMOTE not compatible with sklearn 1.3

image
eervin123 commented 11 months ago

Oh, one other change is itertools() method in pandas was deprecated so you can just change this line to .items()

image
issacnumb commented 10 months ago

thanks for help @ervin123