Skip to content

Conversation

@yanboliang
Copy link
Contributor

Python support for Power Iteration Clustering
https://issues.apache.org/jira/browse/SPARK-5962

@AmplabJenkins
Copy link

Merged build triggered.

@AmplabJenkins
Copy link

Merged build started.

@SparkQA
Copy link

SparkQA commented Jun 24, 2015

Test build #35696 has started for PR 6992 at commit 4be4423.

@SparkQA
Copy link

SparkQA commented Jun 24, 2015

Test build #35696 has finished for PR 6992 at commit 4be4423.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds the following public classes (experimental):
    • class PowerIterationClusteringModel(JavaModelWrapper, JavaSaveable, JavaLoader):
    • class PowerIterationClustering(object):
    • class Assignment(namedtuple("Assignment", ["id", "cluster"])):

@AmplabJenkins
Copy link

Merged build finished. Test PASSed.

@yanboliang
Copy link
Contributor Author

@jkbradley @mengxr

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

getAssignments is only called by Python. So the return type should be RDD[Array[Any]]. This might work:

def getAssignments: RDD[Array[Any]] = {
  model.assignments.map(x => Array(x.id, x.cluster))
}

@AmplabJenkins
Copy link

Merged build triggered.

@AmplabJenkins
Copy link

Merged build started.

@SparkQA
Copy link

SparkQA commented Jun 28, 2015

Test build #35928 has started for PR 6992 at commit 6b03d82.

@SparkQA
Copy link

SparkQA commented Jun 28, 2015

Test build #35928 has finished for PR 6992 at commit 6b03d82.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds the following public classes (experimental):
    • class PowerIterationClusteringModel(JavaModelWrapper, JavaSaveable, JavaLoader):
    • class PowerIterationClustering(object):
    • class Assignment(namedtuple("Assignment", ["id", "cluster"])):

@AmplabJenkins
Copy link

Merged build finished. Test PASSed.

@mengxr
Copy link
Contributor

mengxr commented Jun 29, 2015

LGTM. Merged into master. Thanks!

@asfgit asfgit closed this in dfde31d Jun 29, 2015
@jkbradley
Copy link
Member

@yanboliang Could you please make a JIRA and PR for updating the user guide with the Python API? Thanks!

@yanboliang
Copy link
Contributor Author

@jkbradley OK, I will do it.

@yanboliang yanboliang deleted the pyspark-pic branch July 20, 2015 09:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants