Skip to content

@graphty/algorithms / index / indexed / 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 ​

NodePairs

The held-out edges

nonEdges ​

NodePairs

The non-edges

o? ​

CommonNeighborsOptions = {}

Options

Returns ​

object

The two sets of metrics

adamicAdar ​

adamicAdar: LinkPredictionMetrics

commonNeighbors ​

commonNeighbors: LinkPredictionMetrics