2
$\begingroup$

I am trying to create an environment for RL where the size of my input (observation space) is not fixed. As a way around it, I thought about padding the size to a maximum value and then assigning "null" to those values that do not exist. Now, these "null" values are meaningful in a certain sense, because they are related to the shape and size of the input.

If these "null" values were zeros, would neural networks be able to distinguish between these zeros (nulls) and the zeros that are actually part of the picture? If that's not the case, should I assign a different number for the padding? What should I be mindful of in these scenarios? Is there any example I can look at with a similar situation?

$\endgroup$
2
  • 1
    $\begingroup$ For neural networks, you can find the same question here: ai.stackexchange.com/q/2008/4446 $\endgroup$
    – OmG
    Aug 6, 2021 at 19:36
  • 1
    $\begingroup$ Another solution can be using auto-encoders to embed input vectors into the same meaningful space with the same dimension. $\endgroup$
    – OmG
    Aug 6, 2021 at 20:37

0

You must log in to answer this question.

Browse other questions tagged .