[ 
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-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to