Commit 716e8212 authored by Grzegorz Kostkowski's avatar Grzegorz Kostkowski

Temporary change

parent 9aec7535
......@@ -7,8 +7,8 @@ import operator
import numpy as np
from collections import defaultdict
from gt_algo.centrality import pprmc
# from graph_tool.centrality import pprmc
# from gt_algo.centrality import pprmc
from graph_tool.centrality import pprmc
from wosedon.ranking.wsd_ranking import WSDRanking
from wosedon.algorithms.wsdalgorithminterface import WSDAlgorithmInterface
import logging
......@@ -187,42 +187,42 @@ class GTPPRMC(WSDAlgorithmInterface):
ranking_m1 = None
_log.info("start pprmc algorithm...")
# use_entropy=options.use_entropy(),
# ranking = pprmc(
# g,
# pers=pers_prop,
# epsilon=options.damping_factor(),
# rw_count=options.max_iter(),
# weight=weights_prop,
# edge_weight=edge_weights_prop,
# use_entropy=False,
# normalize=False)
ranking = pprmc(
g,
pers=pers_prop,
epsilon=options.damping_factor(),
rw_count=options.max_iter(),
weight=weights_prop,
edge_weight=edge_weights_prop)
# ranking_ent = pprmc(
# g,
# pers=pers_prop,
# epsilon=options.damping_factor(),
# rw_count=options.max_iter(),
# weight=weights_prop,
# edge_weight=edge_weights_prop,
# use_entropy=True,
# normalize=False)
# ranking_m1 = pprmc(
edge_weight=edge_weights_prop,
use_entropy=False,
normalize=False)
# ranking = pprmc(
# g,
# pers=pers_prop,
# epsilon=options.damping_factor(),
# rw_count=options.max_iter(),
# weight=weights_prop,
# edge_weight=edge_weights_prop,
# use_entropy=options.use_entropy(),
# method="m1")
# edge_weight=edge_weights_prop)
ranking_ent = pprmc(
g,
pers=pers_prop,
epsilon=options.damping_factor(),
rw_count=options.max_iter(),
weight=weights_prop,
edge_weight=edge_weights_prop,
use_entropy=True,
normalize=False)
ranking_m1 = pprmc(
g,
pers=pers_prop,
epsilon=options.damping_factor(),
rw_count=options.max_iter(),
weight=weights_prop,
edge_weight=edge_weights_prop,
use_entropy=options.use_entropy(),
method="m1")
_log.info("pprmc algorithm finished.")
# return ranking
return ranking, ranking_ent, ranking_m1
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment