Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Apprendre Challenge: Setting Up an Environment | RL Core Theory
Introduction to Reinforcement Learning

Glissez pour afficher le menu

book
Challenge: Setting Up an Environment

Tâche

Swipe to start coding

You are asked to setup a "CartPole-v1" Gymnasium environment and write a basic interaction loop.

  1. Import the gymnasium library.
  2. Initialize the "CartPole-v1" environment.
  3. Reset the environment.
  4. Complete the interaction loop by making a step in the environment.
  5. Close the environment after the loop.

Solution

Switch to desktopPassez à un bureau pour une pratique réelleContinuez d'où vous êtes en utilisant l'une des options ci-dessous
Tout était clair ?

Comment pouvons-nous l'améliorer ?

Merci pour vos commentaires !

Section 1. Chapitre 8

Demandez à l'IA

expand
ChatGPT

Posez n'importe quelle question ou essayez l'une des questions suggérées pour commencer notre discussion

book
Challenge: Setting Up an Environment

Tâche

Swipe to start coding

You are asked to setup a "CartPole-v1" Gymnasium environment and write a basic interaction loop.

  1. Import the gymnasium library.
  2. Initialize the "CartPole-v1" environment.
  3. Reset the environment.
  4. Complete the interaction loop by making a step in the environment.
  5. Close the environment after the loop.

Solution

Switch to desktopPassez à un bureau pour une pratique réelleContinuez d'où vous êtes en utilisant l'une des options ci-dessous
Tout était clair ?

Comment pouvons-nous l'améliorer ?

Merci pour vos commentaires !

Section 1. Chapitre 8
Switch to desktopPassez à un bureau pour une pratique réelleContinuez d'où vous êtes en utilisant l'une des options ci-dessous
Nous sommes désolés de vous informer que quelque chose s'est mal passé. Qu'est-il arrivé ?
some-alt