Skip to content

Instantly share code, notes, and snippets.

View mathDR's full-sized avatar

Dan Marthaler mathDR

  • Stitch Fix
  • Columbus
  • 10:10 (UTC -04:00)
  • X @marthal4
View GitHub Profile
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
%matplotlib inline
import seaborn
from scipy.signal import savgol_filter
pop_data = pd.read_csv('world_population.csv') # Note, this is the file located at https://github.com/Brideau/GeospatialLineGraphs/tree/master/GeneratedData
@mathDR
mathDR / gist:e54ea1a01dbe9f5c815b87679fd47ba0
Created August 24, 2017 17:58
GPflow kernel component analysis
{
"cells": [
{
"cell_type": "code",
"execution_count": 44,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
@mathDR
mathDR / mnist_cnn_incremental.py
Created April 14, 2016 02:55
Incremental learning of mnist dataset (following T.Xiao et.al. "Error-Driven Incremental Learning in Deep Convolutional Neural Network for Large-Scale Image Classification"
'''Trains a simple convnet on the MNIST dataset.
Does flat increment from T. Xiao "Error-Driven Incremental Learning in Deep Convolutional
Neural Network for Large-Scale Image Classification"
Starts with just 3 classes, trains for 12 epochs then
incrementally trains the rest of the classes by reusing
the trained weights.
'''
from __future__ import print_function
import numpy as np