A Java-friendly version of PowerIterationClustering.run.
Run the PIC algorithm.
an RDD of (i, j, sij) tuples representing the affinity matrix, which is the matrix A in the PIC paper. The similarity sij must be nonnegative. This is a symmetric matrix and hence sij = sji. For any (i, j) with nonzero similarity, there should be either (i, j, sij) or (j, i, sji) in the input. Tuples with i = j are ignored, because we assume sij = 0.0.
a PowerIterationClusteringModel that contains the clustering result
Set the initialization mode.
Set the number of clusters.
Set maximum number of iterations of the power iteration loop