Ok, so I have a 2D grid based game, which I need to run ML agents in. Now I want the observations to be the entire grid. If I was doing this on the python side, I’d create a 3D tensor and feed it. But I can’t seem to figure out how I’d add a 2D matrix of observations (to feed into a CNN). The GridSensor component is only for 3D environments sadly. I’ve deciphered this much, that I have to implement a custom Isensor class. But that’s where I’m stuck. I can’t seem to find any documentation on how to implement a custom Sensor component or something similar.
Hi, you can check out my grid sensor implementation, it does what you’re looking for.
1 Like