term_value

Contents

term_value#

hybrid_aif.train.term_value(tree)[source]#

A term tree folded into a value (negative EFE): (value, per term).

Folds with the registered term signs and negates once; Interval leaves contribute their midpoint. There is no per-term weight: a term’s sign is its row’s registration. Raises ValueError on a tree with no leaves.