Link scoring and prediction¶
Warning
Do not manually instantiate these classes using their class constructors. Instantiate these classes using the methods create_link_scorer()
and create_link_predictor()
.
-
class
noesis.links.
LinkPredictor
(predictor, *args)¶ This class implements the interface for link predictors. These algorithms compute a score for each pair of nodes according to certain specific rules.
Parameters: - scorer (string) – Technique used to compute node pair scores. Currently supported techniques are: - Local: ‘CommonNeighbors’, ‘AdamicAdar’, ‘ResourceAllocation’, ‘PreferentialAttachment’, ‘HubDepressed’, ‘HubPromoted’, ‘Jaccard’, ‘LocalLeichtHolmeNewman’, ‘Salton’, and ‘Sorensen’. - Global: ‘Katz’, ‘RandomWalk’, ‘RandomWalkWithRestart’, ‘FlowPropagation’, ‘PseudoinverseLaplacian’, ‘AverageCommuteTime’, ‘RandomForestKernel’, and ‘GlobalLeichtHolmeNewman’.
- args (parameters) – Parameters for the link predictor. These parameters are specific for each link predictor and more details are provided in NOESIS documentation.
-
class
noesis.links.
LinkScorer
(scorer, *args)¶ This class implements the interface for link scorers. These algorithms compute a score for each link according to certain specific rules.
Parameters: - scorer (string) – Technique used to compute link scores. Currently supported techniques are: - Local: ‘CommonNeighbors’, ‘AdamicAdar’, ‘ResourceAllocation’, ‘PreferentialAttachment’, ‘HubDepressed’, ‘HubPromoted’, ‘Jaccard’, ‘LocalLeichtHolmeNewman’, ‘Salton’, and ‘Sorensen’. - Global: ‘Katz’, ‘RandomWalk’, ‘RandomWalkWithRestart’, ‘FlowPropagation’, ‘PseudoinverseLaplacian’, ‘AverageCommuteTime’, ‘RandomForestKernel’, and ‘GlobalLeichtHolmeNewman’.
- args (parameters) – Parameters for the link scorer. These parameters are specific for each link scorer and more details are provided in NOESIS documentation.
-
class
noesis.links.
LinkTask
¶ Base abstract class for link-related scores.