필터 지우기
필터 지우기

A mix of rlNumericSpec and rlFiniteSetSpec objects - observation for a RL environment

조회 수: 9 (최근 30일)
I am looking for an example of which implements a mix of rlNumericSpec and rlFiniteSetSpec object in an RL environment (as mentioned here). Some of my observations are numerical/continuous whereas others are finite/discrete.
Thanks.

채택된 답변

Emmanouil Tzorakoleftherakis
Emmanouil Tzorakoleftherakis 2021년 1월 4일
Hi Krupa,
I don't think there is an example that shows how to do that in the documentation right now - I will let the doc team know.
I think something along the following lines should work:
obsInfoCont = rlNumericSpec([2 1])
obsInfoDisc = rlFiniteSetSpec([1 2 3])
obsInfo = [obsInfoCont obsInfoDisc]
  댓글 수: 5
Sania Gul
Sania Gul 2023년 5월 12일
Does the same holds for mixed action space too?
Mohammed Mohammed
Mohammed Mohammed 2023년 12월 3일
what should i use if i have this 2 by 2 matrix
R0 = [cos(psi0)*cos(theta0) -sin(psi0)*cos(theta0)+cos(psi0)*sin(theta0)*sin(phi0);
sin(psi0)*cos(theta0) cos(psi0)*cos(theta0)+sin(psi0)*sin(theta0)*sin(phi0)];

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by