Error on Specifying observation using rlFiniteSe​tSpec(Rein​forcement Learning)

1 vue (au cours des 30 derniers jours)
When creating a simulink environment , for specify observation infomation of 2x1 double input(such as [5.0 ; 2.287]) , I used rlFiniteSetSpec([1 1]). And i got a error said "Invalid observation type or size". Any suggestions and help would be appreciated!

Réponse acceptée

Emmanouil Tzorakoleftherakis
Hello,
The way you called rlFiniteSetSpec basically says that you have two observations and that they are both equal to 1. The values you are showing seem to be continuous though so I would recommend using rlNumericSpec instead.
  1 commentaire
Dongqi Liu
Dongqi Liu le 13 Nov 2020
Thank you very much!
I used rlNumericSpec and DQN.And it run successfully.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Simulink dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by