0.0.2 • Published 11 years ago
pagerank-evaluation v0.0.2
pagerank-evaluation
This is Employee Evaluation Tool which is tried to compute by PageRank Algorithm.
Required
node.js
Install
$ npm install -g https://github.com/waysaku/pagerank-evaluation.git
Input data
var vote_data = {
"tanaka_taro":[
{"dest":"kataoka_michio", "weight":8},
{"dest":"takemoto_michiko", "weight":5},
{"dest":"hachiuma_yoshiko", "weight":3},
],
"kataoka_michio":[
{"dest":"tanaka_taro", "weight":8},
{"dest":"hachiuma_yoshiko", "weight":5},
{"dest":"morishita_shinji", "weight":3}
],
"nakai_miho":[
{"dest":"morishita_shinji", "weight":8},
{"dest":"hachiuma_yoshiko", "weight":5},
{"dest":"takemoto_michiko", "weight":3}
],
"morishita_shinji":[
{"dest":"kataoka_michio", "weight":8},
{"dest":"tanaka_taro", "weight":5},
{"dest":"hachiuma_yoshiko", "weight":3}
],
"takemoto_michiko":[
{"dest":"tanaka_taro", "weight":8},
{"dest":"morishita_shinji", "weight":5},
{"dest":"hachiuma_yoshiko", "weight":3}
]
}
This data specify tanaka_taro vote to kataoka_michio, takemoto_michiko, hachiuma_yoshiko.
weight property is vote weight.
vote weight can be set with no limit. when compute vote weight, it will compute relative from amount vote weight.
execute
execute command line.
$ pagerank-evaluation --src {data json file path}
tanaka_taro:834.9413887051172
morishita_shinji:834.9413887051167
hachiuma_yoshiko:300.7939610013264
kataoka_michio:58.57108548529948
takemoto_michiko:18.700945754087122
nakai_miho:0.2608715356202827
fujimoto_kiyoshi:0.2042553209888944
takahashi_takamasa:0.15000000000000002
akiyama_eiji:0.15000000000000002
command option
$ pagerank-evaluation --help
Usage: pagerank-evaluation [options]
Options:
-h, --help output usage information
-V, --version output the version number
-s --src <src> Read data file path