Skip to content

Instantly share code, notes, and snippets.

import re
import json
import pandas as pd
# Drop in the JSON of `allRows`
data = pd.DataFrame(json.loads("""
<DATA>
@prhbrt
prhbrt / Holistically-Nested Edge Detection Paper Example.ipynb
Last active January 9, 2019 09:41
Holistically-Nested Edge Detection Paper Example
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
import numpy
from gensim.models.keyedvectors import Vocab, KeyedVectors
# Covert the Twitter datasets found here to gensim word2vec format: https://github.com/3Top/word2vec-api
with open('glove.6B.300d.txt') as fin:
word_vecs = {
word: numpy.array(list(map(float, vec.split())))
for line in fin
for word, vec in [line.split(' ', 1)]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@prhbrt
prhbrt / Paalplekken.ipynb
Last active August 4, 2017 09:35
Paalplekken of logerenbijdeboswachter, places in Holland where you're allowed to camp free(ish)ly
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@prhbrt
prhbrt / Keras.ipynb
Created January 19, 2017 15:59
V-Net in Keras and tensorflow
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@prhbrt
prhbrt / IMDB + TFIDF + LogReg.ipynb
Last active March 25, 2019 05:38
Notebook of TFIDF Logistic regression on IMDB sentiment dataset (provided by keras)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.