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

launch_test #3

Open
absolutProgrammer opened this issue Aug 25, 2021 · 1 comment
Open

launch_test #3

absolutProgrammer opened this issue Aug 25, 2021 · 1 comment

Comments

@absolutProgrammer
Copy link

works completely incorrect. It has old usage of class DataMatrices
and after changing it to a normal one (I have taken it from lanch_train and changed to date_start=ctx["test_range"]["start"] and date_end=ctx["test_range"]["end"]).

Now I got an error in rat/network/encoder_decoder.py file:

Traceback (most recent call last):
File "/rat_crypto_trader_master/rat/main.py", line 202, in
run_main()
File "/rat_crypto_trader_master/rat/main.py", line 66, in run_main
launch_test(ctx)
File "/rat_crypto_trader_master/rat/main.py", line 181, in launch_test
tst_portfolio_value, SR, CR, St_v, tst_pc_array, TO = test_net(DM, x_window_size, local_context_length, model,
File "/rat_crypto_trader_master/rat/test.py", line 15, in test_net
tst_long_term_w, tst_trg_y = test_online(DM, x_window_size, model,
File "/rat_crypto_trader_master/rat/test.py", line 61, in test_online
out = model.forward(tst_src, tst_currt_price, tst_previous_w,
File "/rat_crypto_trader_master/rat/network/encoder_decoder.py", line 114, in forward
out = torch.cat([decode_out, previous_w], 2) # [128,11,212] cat [128,11,1] -> [128,11,212+1]
RuntimeError: torch.cat(): Sizes of tensors must match except in dimension 2. Got 1 and 0 in dimension 0 (The offending index is 1)

@louisoutin
Copy link
Owner

6 months I didn't touch that repo, I'm super busy I'll not have time to help you.
However from what I remember, the code was running fine since this last commit.

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

2 participants