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

Stryg for at vise menuen

book
Challenge: Setting Up an Environment

Opgave

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.

Løsning

Switch to desktopSkift til skrivebord for at øve i den virkelige verdenFortsæt der, hvor du er, med en af nedenstående muligheder
Var alt klart?

Hvordan kan vi forbedre det?

Tak for dine kommentarer!

Sektion 1. Kapitel 8
single

single

Spørg AI

expand

Spørg AI

ChatGPT

Spørg om hvad som helst eller prøv et af de foreslåede spørgsmål for at starte vores chat

close

Awesome!

Completion rate improved to 2.7

book
Challenge: Setting Up an Environment

Opgave

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.

Løsning

Switch to desktopSkift til skrivebord for at øve i den virkelige verdenFortsæt der, hvor du er, med en af nedenstående muligheder
Var alt klart?

Hvordan kan vi forbedre det?

Tak for dine kommentarer!

close

Awesome!

Completion rate improved to 2.7

Stryg for at vise menuen

some-alt