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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

qlib/qlib/contrib/model /pytorch_tcn_ts.py error #1752

Open
yycyyyc321 opened this issue Mar 1, 2024 · 0 comments
Open

qlib/qlib/contrib/model /pytorch_tcn_ts.py error #1752

yycyyyc321 opened this issue Mar 1, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@yycyyyc321
Copy link

馃悰 Bug Description

To Reproduce

Steps to reproduce the behavior:

  1. set batch size of model as 2000
  2. set len of infer dataset as 10001
  3. error occur

reason: infer dataset will be split as 5*2000+1, 2000 will be shaped as np.array vector, and 1 will be shaped as np.array scalar.
Calling np.concatenate between vector and scalar will raise error.

Expected Behavior

Screenshot

image

Environment

Note: User could run cd scripts && python collect_info.py all under project directory to get system information
and paste them here directly.

  • Qlib version:
  • Python version:
  • OS (Windows, Linux, MacOS):
  • Commit number (optional, please provide it if you are using the dev version):

Additional Notes

@yycyyyc321 yycyyyc321 added the bug Something isn't working label Mar 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant