Skip to content

Instantly share code, notes, and snippets.

View pspitler3's full-sized avatar

Pierce Spitler pspitler3

View GitHub Profile
@pspitler3
pspitler3 / plot.py
Created January 21, 2019 22:16
Plotnine Tracking Example
from plotnine import ggplot, annotate, aes, geom_text, geom_point, scale_size_manual, scale_shape_manual
from plotnine import scale_colour_manual, ylim, xlim, coord_fixed, theme_void
from plotnine.animation import PlotnineAnimation
import pandas as pd
import numpy as np
import warnings
from tqdm import tqdm
def visualize_play(play_data, path=None):
@pspitler3
pspitler3 / demo.py
Created August 20, 2017 18:41 — forked from martinraison/demo.py
sparse pytorch embedding demo
import argparse
from collections import Counter
import csv
import os
import torch
from torch.autograd import Variable
import torch.nn as nn
import torch.optim as optim
import torch.utils.data as data
import tarfile
@pspitler3
pspitler3 / gist:0754363bb37baa8c3cb4
Created February 27, 2015 06:25
Start-R Part 2 Code
# Load the required libraries
library(datasets)
library(dplyr)
library(ggplot2)
# Load the two datasets to be consumed in this example
CO2 <- CO2
PlantGrowth <- PlantGrowth
# Look at the column names and the first few values for CO2