Skip to content

Instantly share code, notes, and snippets.

@chrishokamp
chrishokamp / 5_word2vec.ipynb
Created May 13, 2016 15:11
Example solution to Udacity Deep Learning course assignment 5 -- W2V CBOW
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@chrishokamp
chrishokamp / working_memorization_example.ipynb
Created August 6, 2015 16:12
dataset shape is everything!
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@chrishokamp
chrishokamp / failed_memorization_example.ipynb
Created August 6, 2015 00:17
A toy example testing the ability (or lack thereof) of a vanilla RNN to memorize sequence information
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@chrishokamp
chrishokamp / wmt15_word_level_qe_evaluation.py
Created May 26, 2015 13:15
wmt15 word level quality estimation evaluation script
from __future__ import division, print_function
import codecs
from sklearn.metrics import f1_score
import numpy as np
from argparse import ArgumentParser
import logging
logging.basicConfig(format='%(asctime)s : %(levelname)s : %(message)s', level=logging.INFO)
logger = logging.getLogger('wmt_eval_logger')
@chrishokamp
chrishokamp / hpt_rule_parse.ipynb
Created February 5, 2015 13:43
simple parsing of hpt rules into preauthoring autocomplete templates
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@chrishokamp
chrishokamp / grab_images.py
Created November 12, 2014 14:41
grab the images at a url
#!/usr/bin/python
#Author: Chris Hokamp
#Spring 2013
import sys
import requests
from BeautifulSoup import BeautifulSoup
import re
if len(sys.argv) != 4:
@chrishokamp
chrishokamp / fracking-puns.txt
Created November 4, 2014 12:36
these words are good candidates for making puns about fracking
fraternize
sassafras's
frankish
franjo
refractor
frannie
infractions
frantically
frankfurters
frantically
@chrishokamp
chrishokamp / sync_with_upstream.sh
Last active August 29, 2015 14:07
how to add an upstream remote, and pull from upstream
# cd into your top level directory ml-group/
# add a remote called 'upstream'
git remote add upstream https://github.com/dcumachinelearning/ml-group.git
# pull from upstream
git pull upstream master
# push the new commits from upstream to your fork on github
git push
@chrishokamp
chrishokamp / install_anaconda.sh
Last active October 11, 2015 18:40
install the anaconda scientific python distribution
# install the anaconda python distribution
echo 'grabbing the distro, note that you need to accept the license...'
wget https://3230d63b5fc54e62148e-c95ac804525aac4b6dba79b00b39d1d3.ssl.cf1.rackcdn.com/Anaconda-2.3.0-Linux-x86_64.sh
bash Anaconda*.sh
echo "all done, have a great day $USER"
@chrishokamp
chrishokamp / gensim_vector_space_notebook.json
Last active August 29, 2015 14:01
gensim lda, hierarchical lda, and lsi demo
{
"metadata": {
"name": "gensim_tutorial"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{