How to solve "Invalid input argument type or size such as observation, reward, isdone or loggedSignals." error? (Reinforcement Learning Toolbox)
6 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Lymperis Perakis
am 11 Jul. 2019
Beantwortet: Drew Davis
am 23 Jul. 2019
I did an implementation of the 2D Bin Packing Problem using the Reinforcement Toolbox, where i defined my environment and agent. When I try to train my agent I get the error "Invalid input argument type or size such as observation, reward, isdone or loggedSignals.". I checked the output variables of my step function and it seems, that they have valid values. When i manually give the Actions to my environment, it gives the expected output and proceeds without problem. So I guess there is a problem with the agent (Neural Network)? Attached you can find a .zip file containing all the functions needed. The script is the environment.m.
0 Kommentare
Akzeptierte Antwort
Drew Davis
am 23 Jul. 2019
In your reset function and step function change:
LoggedSignal.State = {[Blocks];[Bintable]};
to
LoggedSignal.State = {[Blocks],[Bintable]};
The vertical cell array isn't concatenating nicely with another cell array as part of training.
Hope this helps
Drew
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Environments finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!