eqdisco.knowledge.interaction_matrix#
- eqdisco.knowledge.interaction_matrix(f, X, kind='additive', n_pairs=300, random_state=0)[source]#
Pairwise interaction strength: separability of variable
ifromjwith the others fixed.For each pair, samples differ only in \(x_i\) and \(x_j\); the mixed difference of \(f\) measures their interaction (the idea of Friedman’s H-statistic, here as a finite mixed difference).