distance
Functions:
-
adjusted_forest_dists–due to Chebotarev, Shamis, & Avrachenkov
-
bilinear_dists–symmetric bilinear form associated with kernel K
-
generalized_graph_dists–due to Chebotarev, Shamis, & Avrachenkov
adjusted_forest_dists
due to Chebotarev, Shamis, & Avrachenkov
bilinear_dists
bilinear_dists(K)
symmetric bilinear form associated with kernel K
If (square symmetric kernel) provides a quadratic form as
\[
q(x)=x'Kx
\]
then the associated bilinear form is
\[
b_q(x_i,x_j)=\frac{1}{2}(q(x_i+x_j)-q(x_i)-q(x_j))
\]
If K is a proximity, then
\[
D_{ij} = 1-b_q(x_i,x_j) = \frac{1}{2}(K_{ii}+K_{jj}) - K_{ij}
\]
defines a distance metric
Parameters:
-
–Kkernel of similarities
Returns: bilinear distances induced by K
Source code in affinis/distance.py
generalized_graph_dists
due to Chebotarev, Shamis, & Avrachenkov