pyFDN.L1#

class pyFDN.L1(ref)[source]#

Mean absolute value of a parameter – pushes it toward sparse.

__init__(ref)#

Methods

__init__(ref)

check(model)

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

penalty(value)

The penalty on the parameter's mapped value.

terms()

Flatten into (weight, loss) leaves.

Attributes

name

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

penalty(value)[source]#

The penalty on the parameter’s mapped value.

Return type:

Tensor