graphworld icon indicating copy to clipboard operation
graphworld copied to clipboard

[About graph / node label metrics' reference]

Open tingwl0122 opened this issue 3 years ago • 2 comments

I am interested in analyzing some dataset's graph and node label metrics. However, some of those did not include a reference, such as graphworld/src/graph_world/metrics/graph_metrics.py/feature_homogeneity. Is it possible to include where these functions (metrics) come from and what they mean? Thank you!

tingwl0122 avatar Jul 07 '22 04:07 tingwl0122

Hi, thanks for the interest. The code formatting & documentation are still being refined and updated. The feature_homogeneity currently returns averages of (1) within-class angular feature similarity and (2) between-class angular feature similarity. Specifically,

in_avg = avg_{i,j: c(i)==c(j)} 1.0 - angular_distance(x_i, x_j) out_avg = avg_{i,j: c(i)=/=c(j)} 1.0 - angular_distance(x_i, x_j)

jpalowitch avatar Jul 07 '22 16:07 jpalowitch

Thanks for your detailed response! I will take a look at it.

tingwl0122 avatar Jul 09 '22 02:07 tingwl0122