Skip to content

Instantly share code, notes, and snippets.

View DominickZhang's full-sized avatar
🏠
Working from home

Jinnian Zhang DominickZhang

🏠
Working from home
View GitHub Profile
EN:
n01807496 partridge small Old World gallinaceous game birds
n02916936 bulletproof vest a vest capable of resisting the impact of a bullet
n03794056 mousetrap a trap for catching mice
n10565667 scuba diver an underwater diver who uses scuba gear
n02978881 cassette a container that holds a magnetic tape used for recording or playing sound or video
n03126707 crane lifts and moves heavy objects; lifting tackle is suspended from a pivoted boom that rotates around a vertical axis
n03394916 French horn a brass musical instrument consisting of a conical tube that is coiled into a spiral and played by means of valves
n07693725 bagel (Yiddish) glazed yeast-raised doughnut-shaped roll with hard crust
n03710193 mailbox a private box for delivery of mail
@tomrunia
tomrunia / tensorflow_log_loader.py
Created March 2, 2016 09:11
Reading out binary TensorFlow log file and plotting process using MatplotLib
import numpy as np
from tensorflow.python.summary.event_accumulator import EventAccumulator
import matplotlib as mpl
import matplotlib.pyplot as plt
def plot_tensorflow_log(path):
# Loading too much data is slow...
tf_size_guidance = {
@aeberspaecher
aeberspaecher / sampler.py
Created June 19, 2012 09:30
Random variates from a discretly sampled two-dimensional probability density function
"""Sample random numbers according to a uniformly sampled 2d probability
density function.
The method used here probably is similar to rejection sampling
(http://en.wikipedia.org/wiki/Rejection_sampling).
"""
import numpy as np
import sys
from scipy.interpolate import RectBivariateSpline