Skip to content

Instantly share code, notes, and snippets.

katnoria katnoria

Block or report user

Report or block katnoria

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@andrewschreiber
andrewschreiber / jupyter_gym_render.md
Last active Jun 15, 2019
How to stream OpenAI Gym environment rendering within a Jupyter Notebook
View jupyter_gym_render.md

Open jupyter with

$ xvfb-run -s "-screen 0 1400x900x24" jupyter notebook

In Jupyter

import matplotlib.pyplot as plt
%matplotlib inline

After each step

def show_state(env, step=0):
@jxson
jxson / README.md
Created Feb 10, 2012
README.md template
View README.md

Synopsis

At the top of the file there should be a short introduction and/ or overview that explains what the project is. This description should match descriptions added for package managers (Gemspec, package.json, etc.)

Code Example

Show what the library does as concisely as possible, developers should be able to figure out how your project solves their problem by looking at the code example. Make sure the API you are showing off is obvious, and that your code is short and concise.

Motivation

@unixpickle
unixpickle / maml.py
Created Oct 12, 2019
MAML in PyTorch
View maml.py
import torch
import torch.nn.functional as F
def maml_grad(model, inputs, outputs, lr, batch=1):
"""
Update a model's gradient using MAML.
The gradient will point in the direction that
improves the total loss across all inner-loop
@wangruohui
wangruohui / Install NVIDIA Driver and CUDA.md
Last active Dec 8, 2019
Install NVIDIA Driver and CUDA on Ubuntu / CentOS / Fedora Linux OS
View Install NVIDIA Driver and CUDA.md
You can’t perform that action at this time.