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

조회 수: 1 (최근 30일)
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!

채택된 답변

Emmanouil Tzorakoleftherakis
Emmanouil Tzorakoleftherakis 2020년 11월 10일
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.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Reinforcement Learning에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by