@graphty/algorithms / index / compareAdamicAdarWithCommonNeighbors
Function: compareAdamicAdarWithCommonNeighbors() ​
compareAdamicAdarWithCommonNeighbors(
s,edges,nonEdges,o?):object
Defined in: indexed/link-prediction.ts:441
Both evaluations on the same held-out sets. The common-neighbour side always intersects the two OUT rows, whatever directed says, as the legacy function of this name does; the Adamic-Adar side honours directed.
Parameters ​
s ​
GraphSnapshot
The training snapshot
edges ​
The held-out edges
nonEdges ​
The non-edges
o? ​
Options
Returns ​
object
The two sets of metrics
adamicAdar ​
adamicAdar:
LinkPredictionMetrics
commonNeighbors ​
commonNeighbors:
LinkPredictionMetrics