pyFDN.MatchSpectrogram#

class pyFDN.MatchSpectrogram(target, *, nfft=(256, 512, 1024), device=None, **kwargs)[source]#

Multi-resolution STFT distance to a reference impulse response.

Wraps FLAMO’s mss_loss. nfft is the tuple of STFT window sizes; the loss’s own frequency resolution therefore comes from these, independent of the model’s nfft.

__init__(target, *, nfft=(256, 512, 1024), device=None, **kwargs)#

Methods

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

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.