Tinkex.Regularizers.Entropy (Tinkex v0.3.4)

View Source

Entropy regularizer adapter using NxPenalties.

:mode controls whether entropy is encouraged (:maximize) or discouraged (:minimize). The adapter maps these to NxPenalties' :penalty/:bonus modes so the returned tensor can be used directly as a loss term.