DiceDissimilarity
Sørensen–Dice coefficient (Sympy, DiceDissimilarity)
DiceDissimilarity
[u, v]
- returns the Dice dissimilarity between the two Boolean 1-D lists u and v.
This is defined as ($c_{tf}$ + $c_{ft}$) / (2 * $c_{tt}$ + $c_{ft}$ + $c_{tf}$).
n is len(u) and $c_{ij}$ is the number of occurrences of $u[k]=i$ and $v[k]=j$ for $k < n$.
DiceDissimilarity[{1, 0, 1, 1, 0, 1, 1}, {0, 1, 1, 0, 0, 0, 1}]