Skip to content
Snippets Groups Projects
Commit eb521dfe authored by Majdi Karim's avatar Majdi Karim
Browse files

Update reinforce_cartpole.py

parent 1cc0d502
Branches
No related tags found
No related merge requests found
import gymnasium as gym
import torch
import torch.nn as nn
import torch.optim as optim
import torch.nn.functional as F
from torch.distributions import Categorical
import matplotlib.pyplot as plt
# Create the environment
env = gym.make("CartPole-v1", render_mode="human")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment