Publishing Rankings with OpenRank SDK
Publishing rankings after running the OpenRank SDK
Introduction
The OpenRank SDK allows you to compute and publish trust rankings using the EigenTrust algorithm. This document provides the documentation of the available methods, including description of the parameters and an example for quick reference.
The published urls can be found on -
Methods
run_and_publish_eigentrust
run_and_publish_eigentrust
Description
Runs the EigenTrust algorithm using local trust and pre-trust data, and publishes the results.
Parameters
id_
str
The ID for publishing the results. (This will be used to query the published rankings)
-
localtrust
List[IJV]
List of local trust values. Each item is a dictionary with keys: i
(source node), j
(destination node), and v
(trust value).
-
pretrust
List[IV]
List of pre-trust values. Each item is a dictionary with keys: i
(node) and v
(pre-trust value).
None
kwargs
dict
Additional keyword arguments.
-
overwrite
bool
If True
, existing results with the same ID will be overwritten.
False
Returns
Tuple[List[Score], str]
: A tuple containing:List[Score]
: List of computed scores.str
: URL of the published results.
publish_eigentrust
publish_eigentrust
Description
Publishes the EigenTrust results.
Parameters
id_
str
The ID for publishing the results.
-
result
List[Score]
List of computed scores.
-
kwargs
dict
Additional keyword arguments.
-
overwrite
bool
If True
, existing results with the same ID will be overwritten.
False
Returns
str
: URL of the published results.
Example
Last updated