You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Meethu Mathew (JIRA)" <ji...@apache.org> on 2015/01/12 13:45:35 UTC

[jira] [Commented] (SPARK-5012) Python API for Gaussian Mixture Model

    [ https://issues.apache.org/jira/browse/SPARK-5012?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14273561#comment-14273561 ] 

Meethu Mathew commented on SPARK-5012:
--------------------------------------

I added a new class GaussianMixtureModel in clustering.py and the method
predict in it and trying to pass a List  of more than one dimension to the function
_py2java , but I am getting the exception 

'list' object has no attribute '_get_object_id'

and when I give a tuple input (Vectors.dense([0.8786,
-0.7855]),Vectors.dense([-0.1863, 0.7799])) exception is like

'numpy.ndarray' object has no attribute '_get_object_id'.   Can you help me to solve this?

My aim is to call the predictsoft() in GaussianMixtureModel.scala from clustering.py by passing the values of weight,mean and sigma 

> Python API for Gaussian Mixture Model
> -------------------------------------
>
>                 Key: SPARK-5012
>                 URL: https://issues.apache.org/jira/browse/SPARK-5012
>             Project: Spark
>          Issue Type: New Feature
>          Components: MLlib, PySpark
>            Reporter: Xiangrui Meng
>            Assignee: Meethu Mathew
>
> Add Python API for the Scala implementation of GMM.



--
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