Skip to content

Instantly share code, notes, and snippets.

@0xfe
Created March 2, 2020 16:48
Show Gist options
  • Save 0xfe/a119bf4bfbe05eb4dc8e383f9355b37b to your computer and use it in GitHub Desktop.
Save 0xfe/a119bf4bfbe05eb4dc8e383f9355b37b to your computer and use it in GitHub Desktop.
Peek into Spectrogram ANN weights (1D)
def plot_weights(index, weights=weights_sxx):
plt.figure(figsize=(15, 2))
plt.subplot(1, 3, 1)
plt.plot(weights[index][0])
plt.subplot(1, 3, 2)
plt.plot(weights[index][5])
plt.subplot(1, 3, 3)
plt.plot(weights[index][10])
plt.show()
for index in [0, 10, 20, 30]:
plot_weights(index)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment