Farama-Foundation / Minigrid

Simple and easily configurable grid world environments for reinforcement learning
https://minigrid.farama.org/
Other
2.09k stars 604 forks source link

[Question] Getting total number of unique states #397

Closed kbkartik closed 1 year ago

kbkartik commented 1 year ago

Question

1) How can I get the total number of unique low-dimensional states in an environment? For instance, in four rooms, there are 256 + 4 low dimensional states. However, I had to count this manually. Is it possible to get the unique states count automatically for each environment?

2) How can I get the total number of unique images in an environment?

pseudo-rnd-thoughts commented 1 year ago

Sadly no to both questions, there is no automatic way of doing this. But it should be possible to write a depth first search to generate all of the unique states along with unique images