eqdisco.knowledge.separability#

eqdisco.knowledge.separability(f, X, group_a, kind='additive', n_pairs=500, random_state=0)[source]#

Relative violation of separability between group_a and the other variables.

Pairs of samples \((\mathbf a,\mathbf b)\), \((\mathbf a',\mathbf b')\) are drawn from X; the mixed difference is compared with the spread of \(f\). Values near 0 indicate separability.