t-maze - Problem 1

15 views
Skip to first unread message

ZEYNEP ABALI

unread,
Dec 10, 2021, 11:23:42 AM12/10/21
to COMP541
Hi,

In problem 1 - implementing the lstm agent, I am getting the following message for the last test (I also asked about this in the lab session but).

image.png

This is when I think I am converting. And when I purposefully do not convert to atype, I am getting the following error:

image.png

The second error makes sense since I am actually not converting, but I cannot understand what is going on with the first one. I'll appreciate any help.

Best,
Zeynep

MISRA YAVUZ

unread,
Dec 10, 2021, 12:59:43 PM12/10/21
to ZEYNEP ABALI, COMP541
Hi,

Same here... I guess converting does not work, but I don't know why. When I check the types before and after converting, this is the output:

model.atype = Array{Float64, N} where N
before: typeof(world_states) = Vector{Vector{Float64}}
after: typeof(world_states) = Vector{Vector{Float64}}

Any suggestions?

Best,
Mısra




--
You received this message because you are subscribed to the Google Groups "COMP541" group.
To unsubscribe from this group and stop receiving emails from it, send an email to COMP541+u...@ku.edu.tr.
To view this discussion on the web visit https://groups.google.com/a/ku.edu.tr/d/msgid/COMP541/CAPWEfC%2Bw3U8erGb8eMCULcaNFBygtO_dwcj%3D0O%3DE-P-FoKmDog%40mail.gmail.com.

Taher Anjary

unread,
Dec 11, 2021, 8:23:55 AM12/11/21
to MISRA YAVUZ, ZEYNEP ABALI, COMP541
Maybe try "hcat(world_states...)" before casting. This will convert your vector of vectors into a single 2d matrix.

Reply all
Reply to author
Forward
0 new messages