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
[color] | |
ui = auto | |
[diff] | |
external = sh -c 'vimdiff $2 $5' git_diff_wrapper | |
[pager] | |
diff = | |
[push] | |
default = simple | |
[core] | |
autocrlf = input |
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
from traceback import print_exc | |
import sys | |
def simplify_svg(svg_str,to_integer=True): | |
def to_number(s): | |
try: | |
if to_integer: | |
return int(float(str(s).strip())) | |
else: |
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
<html> | |
<head> | |
<!-- Load TensorFlow.js --> | |
</script> | |
<style> | |
#no-webcam { | |
display: none; | |
} | |
</style> |
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
# coding: utf-8 | |
import numpy as np | |
from numpy.lib.stride_tricks import as_strided | |
def make_sequence(y, frame_length, hop_length=1): | |
'''Slice a time series into overlapping frames. | |
code derived from: | |
https://librosa.github.io/librosa/_modules/librosa/util/utils.html |
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
#!/usr/bin/env python | |
# code: utf-8 | |
from __future__ import print_function, division, absolute_import | |
import numpy as np | |
class CumStats(): | |
""" | |
Cumulative stats | |
CumStats(self, ddof=0) |
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
"""Simple example on how to log scalars and images to tensorboard without tensor ops.""" | |
__author__ = "Michael Gygli" | |
import tensorflow as tf | |
from StringIO import StringIO | |
import matplotlib.pyplot as plt | |
import numpy as np | |
class Logger(object): | |
"""Logging in tensorboard without tensorflow ops.""" |
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
--- tensorflow/contrib/rnn/python/ops/core_rnn_cell_impl.py.orig 2017-05-08 17:02:53.971000000 +0900 | |
+++ tensorflow/contrib/rnn/python/ops/core_rnn_cell_impl.py 2017-05-08 17:39:43.810067656 +0900 | |
@@ -558,9 +558,13 @@ | |
return nest.map_structure(enumerated_fn, *args, **kwargs) | |
+VRDV_MIN, VRDV_MAX = 1.0e-30, 1.0e30 # XXX clip boundary for variational_rnn_dropout | |
+ | |
+ | |
class DropoutWrapper(RNNCell): |