Skip to content

Instantly share code, notes, and snippets.

View LUKELIEM's full-sized avatar

Luke Liem LUKELIEM

View GitHub Profile
@nailo2c
nailo2c / pytorch-policy-gradient.py
Last active March 25, 2019 08:27
Implement policy gradient by PyTorch and training on ATARI Pong
# -*- coding: utf-8 -*-
import os
import argparse
import gym
import numpy as np
from itertools import count
import torch
import torch.nn as nn