pyFDN.Energy#

class pyFDN.Energy(target=1.0)[source]#

Squared deviation of the response’s total energy from target.

A blunt level anchor: useful next to a magnitude-only loss to stop an objective that is invariant to overall gain from drifting.

__init__(target=1.0)[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.