@graphty/algorithms / index / evaluateCommonNeighbors
Function: evaluateCommonNeighbors() ​
evaluateCommonNeighbors(
s,edges,nonEdges,o?):LinkPredictionMetrics
Defined in: indexed/link-prediction.ts:341
Ranking metrics of the common-neighbour score on held-out edges against non-edges.
Parameters ​
s ​
GraphSnapshot
The training snapshot
edges ​
The held-out edges
nonEdges ​
The non-edges
o? ​
Options
Returns ​
The metrics