Skip to content

Instantly share code, notes, and snippets.

View ita9naiwa's full-sized avatar

Hyunsung Lee ita9naiwa

View GitHub Profile
@ita9naiwa
ita9naiwa / logistic_mf.ipynb
Last active June 4, 2019 09:20
logistic matrix factorization
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ita9naiwa
ita9naiwa / reinforce_mp.py
Last active February 21, 2019 12:30
Reinforce algorithm with multiprocesses
# mainly brought from https://github.com/pytorch/examples/blob/master/reinforcement_learning/reinforce.py
import gym
import numpy as np
import torch
from torch import nn
from torch import optim
import torch.nn.functional as F
from torch.distributions import Categorical
import torch.multiprocessing as mp