This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 = { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""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 |