docs/algo/sona/copra__sona.md
COPRA算法是一种基于LPA的扩展算法,可以用于重叠社区的发现。
0 1 0.3
2 1 0.5
3 1 0.1
3 2 0.7
4 1 0.3
其中,从左到右三列数据的意义分别为源节点ID、尾节点ID、边权值(无权情况可以为空)
tab, 空格等DISK_ONLY/MEMORY_ONLY/MEMORY_AND_DISKinput=hdfs://my-hdfs/data
output=hdfs://my-hdfs/output
source ./spark-on-angel-env.sh
$SPARK_HOME/bin/spark-submit \
--master yarn-cluster\
--conf spark.ps.instances=1 \
--conf spark.ps.cores=1 \
--conf spark.ps.jars=$SONA_ANGEL_JARS \
--conf spark.ps.memory=10g \
--name "CopraExample angel" \
--jars $SONA_SPARK_JARS \
--driver-memory 5g \
--num-executors 1 \
--executor-cores 4 \
--executor-memory 10g \
--class com.tencent.angel.spark.examples.cluster.CopraExample \
../lib/spark-on-angel-examples-3.3.0.jar
input:$input output:$output \
sep:tab storageLevel:MEMORY_ONLY useBalancePartition:true maxIteration:10\
partitionNum:4 psPartitionNum:1 numMaxCommunities:3 needReplicateEdge:true