SpringRank

授权协议 MIT License
开发语言
所属分类 应用工具、 科研计算工具
软件类型 开源软件
地区 不详
投 递 者 梁浩涆
操作系统 跨平台
开源组织
适用人群 未知
 软件概览

SpringRank

SpringRank is a method for ranking the nodes in a directed network or from a set of pairwise comparisons.

In this repo, we provide three implementations of the SpringRank model described in:

  • [1] C. De Bacco, D. B. Larremore and C. Moore, A physical model for efficient ranking in networks, Science Advances, Vol 4, 7, eaar8260, 2018. Science Advances PDF. arXiv PDF and here.

If you use this code please cite [1].

What's included:

  • python : Python code and a test script.
  • matlab : MATLAB code and a test script.
  • r : R code and a test script.
  • iml_sas: SAS/IML code.
  • data : Contains sample adjacency files to test the code and a sample result.

Other implementations:

Python Notes:

Need to make a directory called data at the same level of the python folder.To make one, just type from the command line, inside that folder:

  • mkdir data

Input format.

The directed adjacency matrix should be formatted as an edge list with 3 columns:

node1 node2 3

The first and second columns are the source and target nodes of that edge, respectively; the third is the edge weigth (must be integer). In this example the edge node1 --> node2 exists with weight 3.

Output.

One file will be generated inside the data folder containg the SpringRank scores ordered from highest to lowest. The output file will be inside data folder with names:

  • networkname_SpringRank_a0.0_l0_1.0_l1_1.0.dat for the case alpha=0 and l_0=l_1=1.0.

The first column is the node id, the second column is the SpringRank score.

Copyright (c) 2017 Caterina De Bacco and Daniel B Larremore

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

  • 1、适用场景   网络节点重要性排名、人力资源干部作训排名、小组竞赛打分排名等任何输出为排名结果的系统。下面将以小组竞赛为例介绍常见的排序方法计算过程。   例1:有7个评委对4个候选人进行强制排名,最后根据评委的排名数据给出4位候选人的综合排名结果7位评委的详细评价数据见表1: 表1 被评价人/评价人 L1 L2 L3 L4 L5 L6 L7 E1 3 1 3 4 2 2 2 E2 1 3 4

相关阅读

相关文章

相关问答

相关文档