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.nfftis the tuple of STFT window sizes andoverlapthe fractional frame overlap, as inFlatSpectrogram; the loss’s own frequency resolution comes from these, independent of the model’snfft. Further keywords go to FLAMO’smss_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
nameShort label, used as the key in
pyFDN.TrainLog.loss_log.