WorldLosses#
- class hybrid_aif.train.WorldLosses[source]#
Bases:
NamedTupleThe objective, decomposed: every field a scalar mean over batch and time.
dyn > dyn_rawmeans the free-bits floor binds.- dyn: Array#
The dynamics KL
KL[sg(posterior) || prior], after the free-bits floor and before its scale.
- rep: Array#
The representation KL
KL[posterior || sg(prior)], after the free-bits floor and before its scale.
- static __new__(_cls, total, decoder, reward, cont, dyn, rep, dyn_raw, rep_raw)#
Create new instance of WorldLosses(total, decoder, reward, cont, dyn, rep, dyn_raw, rep_raw)