Skip to content

@graphty/algorithms / index / evaluateAdamicAdar

Function: evaluateAdamicAdar() ​

evaluateAdamicAdar(s, edges, nonEdges, o?): LinkPredictionMetrics

Defined in: indexed/link-prediction.ts:420

Ranking metrics of the Adamic-Adar score on held-out edges against non-edges.

Parameters ​

s ​

GraphSnapshot

The training snapshot

edges ​

NodePairs

The held-out edges

nonEdges ​

NodePairs

The non-edges

o? ​

CommonNeighborsOptions = {}

Options

Returns ​

LinkPredictionMetrics

The metrics