pyFDN.MatchImpulseResponse#

class pyFDN.MatchImpulseResponse(target)[source]#

Mean squared error against a reference impulse response, sample by sample.

The strictest of the matching losses – it fits phase as well as magnitude, which for a reverberator is usually more than you want. Reach for MatchSpectrogram unless you are fitting an early part or a short filter.

Parameters:

target (Any) – Reference IR, shape (n_samples,), (n_samples, n_out) or (n_samples, n_out, n_in). Zero-padded or truncated to the model’s nfft.

__init__(target)[source]#

Methods

__init__(target)

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.