[Python] gym env.render() on Nth step

Discussão em 'Python' iniciado por Stack, Julho 22, 2025.

  1. Stack

    Stack Membro Participativo

    I am using gym==0.26.0 and I am trying to make my environment render only on each Nth step. So that my nn is learning fast but that I can also see some of the progress as the image and not just rewards in my terminal. With the newer versions of gym, it seems like I need to specify the render_mode when creating but then it uses just this render mode for all renders.

    How to make the env.render() render it as "human" only for each Nth episode? (it seems like you order the one and only render_mode in env.make)

    Continue reading...

Compartilhe esta Página