From 18d803bc0e69d6de0026916ef6cd1e9146a44f75 Mon Sep 17 00:00:00 2001 From: Yanbo Liang Date: Thu, 2 Jul 2015 17:25:21 +0800 Subject: [PATCH] address comments --- docs/mllib-clustering.md | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/docs/mllib-clustering.md b/docs/mllib-clustering.md index e4d0d9a02d701..3aad4149f99db 100644 --- a/docs/mllib-clustering.md +++ b/docs/mllib-clustering.md @@ -402,12 +402,17 @@ PowerIterationClusteringModel sameModel = PowerIterationClusteringModel.load(sc.
-PowerIterationClustering implements the PIC algorithm. It takes an `RDD` of `(srcId: Long, dstId: Long, similarity: Double)` tuples representing the affinity matrix. -Calling `PowerIterationClustering.run` returns a PowerIterationClusteringModel which contains the computed clustering assignments. +[`PowerIterationClustering`](api/python/pyspark.mllib.html#pyspark.mllib.clustering.PowerIterationClustering) +implements the PIC algorithm. +It takes an `RDD` of `(srcId: Long, dstId: Long, similarity: Double)` tuples representing the +affinity matrix. +Calling `PowerIterationClustering.run` returns a +[`PowerIterationClusteringModel`](api/python/pyspark.mllib.html#pyspark.mllib.clustering.PowerIterationClustering), +which contains the computed clustering assignments. {% highlight python %} from __future__ import print_function -from pyspark.mllib.clustering import PowerIterationClustering +from pyspark.mllib.clustering import PowerIterationClustering, PowerIterationClusteringModel # Load and parse the data data = sc.textFile("data/mllib/pic_data.txt")