You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (JIRA)" <ji...@apache.org> on 2015/06/24 17:14:04 UTC
[jira] [Commented] (SPARK-5962) [MLLIB] Python support for Power
Iteration Clustering
[ https://issues.apache.org/jira/browse/SPARK-5962?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14599557#comment-14599557 ]
Apache Spark commented on SPARK-5962:
-------------------------------------
User 'yanboliang' has created a pull request for this issue:
https://github.com/apache/spark/pull/6991
> [MLLIB] Python support for Power Iteration Clustering
> -----------------------------------------------------
>
> Key: SPARK-5962
> URL: https://issues.apache.org/jira/browse/SPARK-5962
> Project: Spark
> Issue Type: New Feature
> Components: MLlib
> Reporter: Stephen Boesch
> Assignee: Stephen Boesch
> Labels: python
> Original Estimate: 168h
> Remaining Estimate: 168h
>
> Add python support for the Power Iteration Clustering feature. Here is a fragment of the python API as we plan to implement it:
> /**
> * Java stub for Python mllib PowerIterationClustering.run()
> */
> def trainPowerIterationClusteringModel(
> data: JavaRDD[(java.lang.Long, java.lang.Long, java.lang.Double)],
> k: Int,
> maxIterations: Int,
> runs: Int,
> initializationMode: String,
> seed: java.lang.Long): PowerIterationClusteringModel = {
> val picAlg = new PowerIterationClustering()
> .setK(k)
> .setMaxIterations(maxIterations)
> try {
> picAlg.run(data.rdd.persist(StorageLevel.MEMORY_AND_DISK))
> } finally {
> data.rdd.unpersist(blocking = false)
> }
> }
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org