Skip to content

Commit

Permalink
fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
wangmiao1981 committed Oct 30, 2017
1 parent 752b685 commit cfa18af
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ class PowerIterationClustering private[clustering] (
require(nbr.size == weight.size,
"The length of neighbor list must be equal to the the length of the weight list.")
nbr.toArray.toIterator.zip(weight.toArray.toIterator)
.map(x => (id, x._1.toLong, x._2.toLong))}
.map(x => (id, x._1.toLong, x._2))}
val algorithm = new MLlibPowerIterationClustering()
.setK($(k))
.setInitializationMode($(initMode))
Expand Down

0 comments on commit cfa18af

Please sign in to comment.