InteractionCellLabelWarning#

exception superglm.InteractionCellLabelWarning#

Bases: UserWarning

Two cells of a categorical interaction share a "level1:level2" label.

Raised by term_inference and reconstruct_feature when a level holds a colon: ("x", "y:z") and ("x:y", "z") are both labelled "x:y:z", so a dict keyed by those labels holds one value for both, and a fitted cell’s label can read like a base cell’s. The values themselves are right. Read each cell by its pair of levels from the per-pair fields the warning names, or rename the levels so none contains ":".