AI4Finance-Foundation / AI4Finance-Foundation/FinRL

Please help! AssertionError : assert state.shape == (args.state_dim,)

Open
#1,226 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
Jupyter Notebook
Stars
16.3k
Forks
3.5k
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.