graphclust.metrics.trustworthiness_continuity#
- graphclust.metrics.trustworthiness_continuity(X_high, Y, k=10, *, precomputed=False, Q=None)[source]#
Trustworthiness \(M_1(k)\) and continuity \(M_2(k)\) (Venna and Kaski 2001).
\[M_1(k)=1-\frac{2}{Nk(2N-3k-1)}\sum_i\sum_{j\in U_k(i)}(r(i,j)-k),\qquad M_2(k)=1-\frac{2}{Nk(2N-3k-1)}\sum_i\sum_{j\in V_k(i)}(\hat r(i,j)-k),\]where \(U_k(i)\) are the map neighbors of \(i\) that are not its input-space neighbors (ranked \(r\) in the input space) and \(V_k(i)\) the input-space neighbors missing from the map (ranked \(\hat r\) in the map). Low trustworthiness means false neighbors in the display, low continuity means torn neighborhoods.
kmay be an int or a sequence; arrays are returned for sequences.
Examples using graphclust.metrics.trustworthiness_continuity#
Mapping real data: Wine and Wisconsin breast cancer
Mapping real data: Wine and Wisconsin breast cancer