SVEKER.utils.c_fminus¶
- SVEKER.utils.c_fminus(n_i: int, n_d: int, i: int, d: int)¶
Calculates the \(C_{f^-}\) factor
\(C_{f^-} = \binom{I}{N_i} \binom{D-1}{N_d}\)
Number of unique combinations of \(N_i\) elements in a set of \(I\) and N_d elements in a set of \(D-1\) (the assessed feature is not part of the coalition).
- Parameters:
n_i (int) – Number of elements in the intersection, \(N_i\)
n_d (int) – Number of elemtnes in the symmetric difference, \(N_d\)
i (int) – Size of the intersection, \(I\)
d (int) – Size of the symmetric difference, \(D\)
- Returns:
\(C_{f^-}\) factor
- Return type:
float