Skip to content

A question on the dim and dtype of action. #7

Answered by johbrust
lk1983823 asked this question in Q&A
Discussion options

You must be logged in to vote

Regarding question 1: Yes, action = int(action) is specific to the environment and its action space. Floats are no problem.

Regarding question 2: You can define an input vector (array with one dimension) with multiple actions. But you have to set this also in your Simulink model in the TCP/IP Input block (see description here for block parameter Number of input signals).

I created an example here in a separate branch with 2 float actions for you to check out.

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@lk1983823
Comment options

Answer selected by lk1983823
Comment options

You must be logged in to vote
2 replies
@johbrust
Comment options

@lk1983823
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #5 on November 30, 2022 14:16.