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
| """ 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 | |
| """ |
| """ | |
| 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): |
| 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: |
| MIT License | |
| Copyright (c) 2017 Jan Schlüter | |
| Permission is hereby granted, free of charge, to any person obtaining a copy | |
| of this software and associated documentation files (the "Software"), to deal | |
| in the Software without restriction, including without limitation the rights | |
| to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| copies of the Software, and to permit persons to whom the Software is | |
| furnished to do so, subject to the following conditions: |
| #!/bin/bash | |
| ### steps #### | |
| # Verify the system has a cuda-capable gpu | |
| # Download and install the nvidia cuda toolkit and cudnn | |
| # Setup environmental variables | |
| # Verify the installation | |
| ### | |
| ### to verify your gpu is cuda enable check |
| import sys | |
| from collections import OrderedDict | |
| PY2 = sys.version_info[0] == 2 | |
| _internal_attrs = {'_backend', '_parameters', '_buffers', '_backward_hooks', '_forward_hooks', '_forward_pre_hooks', '_modules'} | |
| class Scope(object): | |
| def __init__(self): | |
| self._modules = OrderedDict() |