pyFDN.MatchSpectrogram#

class pyFDN.MatchSpectrogram(target, *, nfft=(256, 512, 1024), overlap=0.75, **flamo_options)[source]#

Multi-resolution STFT distance to a reference impulse response.

Wraps FLAMO’s mss_loss. nfft is the tuple of STFT window sizes and overlap the fractional frame overlap, as in FlatSpectrogram; the loss’s own frequency resolution comes from these, independent of the model’s nfft. Further keywords go to FLAMO’s mss_loss (e.g. energy_norm).

__init__(target, *, nfft=(256, 512, 1024), overlap=0.75, **flamo_options)#

Methods

__init__(target, *[, nfft, overlap])

check(model)

Preflight against the model it will train, before the first step.

terms()

Flatten into (weight, loss) leaves.

Attributes

name

Short label, used as the key in pyFDN.TrainLog.loss_log.