[
https://issues.apache.org/jira/browse/SPARK-27231?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16798170#comment-16798170
]
shahid commented on SPARK-27231:
--------------------------------
I am analyzing the issue,
> Stack overflow error, when we increase the number of iteration in PIC
> ---------------------------------------------------------------------
>
> Key: SPARK-27231
> URL: https://issues.apache.org/jira/browse/SPARK-27231
> Project: Spark
> Issue Type: Bug
> Components: MLlib
> Affects Versions: 2.3.3, 2.4.0
> Reporter: shahid
> Priority: Minor
>
> val dataset = spark.createDataFrame(Seq(
> (0L, 1L, 1.0),
> (0L, 2L, 1.0),
> (1L, 2L, 1.0),
> (3L, 4L, 1.0),
> (4L, 0L, 0.1)
> )).toDF("src", "dst", "weight")
> val model = new PowerIterationClustering().
> setK(2).
> setMaxIter(100).
> setInitMode("degree").
> setWeightCol("weight")
> val prediction = model.assignClusters(dataset).select("id", "cluster")
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]