我曾使用一个名为depict的软件进行分析,该软件在Python语言中包含了亲和力传播分析。
我热衷于实现一个使用R/apcluster进行额外分析的对应物。似乎两者都使用了相关性,但结果略有不同。有没有可能查个水落石出?非常感谢。
af_obj = AffinityPropagation(affinity = 'precomputed', max_iter=10000, convergence_iter=1000) # using almost only default parameters
print "Affinity Propagation parameters:"
for param, val in af_obj.get_params().items():
print "\t{}: {}".format(param, val)
print "Perfoming Affinity Propagation.."
af = af_obj.fit(matrix_corr)和Python中一样:https://github.com/jinghuazhao/PW-pipeline/blob/master/files/network_plot.py
require(apcluster)
apres <- apcluster(corSimMat,tRaw,details=TRUE)如R中的:https://github.com/jinghuazhao/PW-pipeline/blob/master/files/network.R J
竞华
发布于 2018-04-14 00:25:56
如果R包apcluster的所有功能都在Python中可用,那就太好了!
回答您关于不同结果的问题:
我希望这能有所帮助。
https://stackoverflow.com/questions/49792096
复制相似问题