Create _ext/ and _templates/ subdirectories.
Move edit_on_github.py into the _ext/ subdirectory.
Move sourcelink.html into the _templates/ subdirectory.
Add the following after the import sys, os line
| from __future__ import division, print_function, absolute_import | |
| import numpy as np | |
| import scipy | |
| from spectral import check_COLA # https://github.com/scipy/scipy/pull/6058 | |
| windows = np.unique(scipy.signal.windows._win_equiv.values()) | |
| windows = sorted(windows, key=lambda x: x.__name__) | |
| for window in windows: | |
| try: |
| """ | |
| This is a batched LSTM forward and backward pass | |
| """ | |
| import numpy as np | |
| import code | |
| class LSTM: | |
| @staticmethod | |
| def init(input_size, hidden_size, fancy_forget_bias_init = 3): |
| """ Play an audio file with pyaudio while concurrently showing audio playhead | |
| on a matplotlib plot of the audio time series and spectrogram. | |
| Adjust duration and filename in the script below to reflect your audio file. | |
| v. 0.1 | |
| 21 Mar 2012 | |
| Eric Bruning | |
| """ |