Skip to content

Instantly share code, notes, and snippets.

@jayanthc
jayanthc / singlebinresponse.py
Created March 5, 2020 20:25
Plots the single-bin frequency response of direct FFT and PFB.
#!/usr/bin/python
# singlebinresponse.py
# Plots the single-bin frequency response of direct FFT and PFB
#
# Created by Jayanth Chennamangalam
# (PFB coefficient generation based on code by Sean McHugh, UCSB)
import sys
import getopt
@jayanthc
jayanthc / tensorboard_batch_monitor.py
Last active September 3, 2018 08:43
TensorBoard for visualising batch-level metrics.
# TensorBoard for visualising batch-level metrics
# Based on code from various people at
# https://github.com/keras-team/keras/issues/6692
import tensorflow as tf
from keras.callbacks import TensorBoard
class TensorBoardBatchMonitor(TensorBoard):
def __init__(self, log_every=1, **kwargs):
super().__init__(**kwargs)