Skip to content

Instantly share code, notes, and snippets.

Chris Hokamp chrishokamp

Block or report user

Report or block chrishokamp

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
@chrishokamp
chrishokamp / 5_word2vec.ipynb
Created May 13, 2016
Example solution to Udacity Deep Learning course assignment 5 -- W2V CBOW
View 5_word2vec.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View working_memorization_example.ipynb
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 Aug 6, 2015
A toy example testing the ability (or lack thereof) of a vanilla RNN to memorize sequence information
View failed_memorization_example.ipynb
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
wmt15 word level quality estimation evaluation script
View wmt15_word_level_qe_evaluation.py
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 Feb 5, 2015
simple parsing of hpt rules into preauthoring autocomplete templates
View hpt_rule_parse.ipynb
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 Nov 12, 2014
grab the images at a url
View grab_images.py
#!/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 Nov 4, 2014
these words are good candidates for making puns about fracking
View fracking-puns.txt
fraternize
sassafras's
frankish
franjo
refractor
frannie
infractions
frantically
frankfurters
frantically
@chrishokamp
chrishokamp / sync_with_upstream.sh
Last active Aug 29, 2015
how to add an upstream remote, and pull from upstream
View sync_with_upstream.sh
# 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 Oct 11, 2015
install the anaconda scientific python distribution
View install_anaconda.sh
# 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 Aug 29, 2015
gensim lda, hierarchical lda, and lsi demo
View gensim_vector_space_notebook.json
{
"metadata": {
"name": "gensim_tutorial"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
You can’t perform that action at this time.