Skip to content

Instantly share code, notes, and snippets.

View xanderex-sid's full-sized avatar
🎯
Focusing

Siddharth Mishra xanderex-sid

🎯
Focusing
View GitHub Profile
@xanderex-sid
xanderex-sid / pgRL-pong.py
Created September 23, 2024 17:02
PyTorch - Training a NN Pong agent with Policy Gradients from raw pixels
import pickle
import numpy as np
import torch
import gym
import torch.nn as nn
import torch.nn.functional as F
import torch.optim as optim