compileml.fairness

model_interaction_structure

def model_interaction_structure(artifact) -> dict

from compileml.fairness import model_interaction_structure

Model-level context for §8: how much of the card is pairwise at all.

Not a group metric — it cannot be, since it is a property of the compiled model. Reported alongside §8 because "every component is an interaction" is the fact that makes a per-group interaction share meaningless, and a reader deserves to see it rather than wonder.

Parameters#

NameTypeDefaultKind
artifact—requiredpositional

Returns#

dict