SVEKER.utils.c_fplus¶
- SVEKER.utils.c_fplus(n_i: int, n_d: int, i: int, d: int)¶
Calculates the \(C_{f^+}\) factor.
\(C_{f^+} = \binom{I-1}{N_i} \binom{D}{N_d}\)
Number of unique combinations of \(N_i\) elements in a set of \(I-1\) (the assessed feature is not part of the coalition) and N_d elements in a set of \(D\).
- 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