-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Please help! AssertionError : assert state.shape == (args.state_dim,) #1226
Comments
same for me. please write back if you get answer: it look like that dimension model state is not matching with ENV state dimension |
same for me... |
Problem found: |
Thank you very much for your help. It seems that the problem has been solved. Thank you again! |
what is this code mean? 'self.state_dim = 1 + 2 + 3 * stock_dim + self.tech_array.shape[1]' |
Follow the tutorial https://github.com/AI4Finance-Foundation/FinRL-Tutorials/blob/master/3-Practical/FinRL_MultiCrypto_Trading.ipynb .
Always in:
Traceback (most recent call last):
File "C:\Program Files\JetBrains\PyCharm Community Edition 2024.1\plugins\python-ce\helpers\pydev\pydevd.py", line 1535, in _exec
pydev_imports.execfile(file, globals, locals) # execute the script
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\JetBrains\PyCharm Community Edition 2024.1\plugins\python-ce\helpers\pydev_pydev_imps_pydev_execfile.py", line 18, in execfile
exec(compile(contents+"\n", file, 'exec'), glob, loc)
File "D:\per\AI\test2\Crypto.py", line 44, in
train(start_date=TRAIN_START_DATE,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\per\AI\test2\traintest.py", line 72, in train
trained_model = agent.train_model(
^^^^^^^^^^^^^^^^^^
File "D:\per\AI\test2\elegantrl_models.py", line 107, in train_model
train_agent(model)
File "C:\Users\zhipe\AppData\Local\Programs\Python\Python311\Lib\elegantrl\train\run.py", line 35, in train_agent
assert state.shape == (args.state_dim,)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError
The text was updated successfully, but these errors were encountered: