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

[jira] [Commented] (SPARK-9793) PySpark DenseVector, SparseVector should override __eq__

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

Yanbo Liang commented on SPARK-9793:
------------------------------------

[~josephkb] I think we can override the "Vector.__eq__" of Python like what Vector.equals() of Scala does, then it can compare DenseVector with SparseVector. If this make sense, I can submit a patch tomorrow. 

> PySpark DenseVector, SparseVector should override __eq__
> --------------------------------------------------------
>
>                 Key: SPARK-9793
>                 URL: https://issues.apache.org/jira/browse/SPARK-9793
>             Project: Spark
>          Issue Type: Bug
>          Components: ML, PySpark
>    Affects Versions: 1.5.0
>            Reporter: Joseph K. Bradley
>            Priority: Critical
>
> See [SPARK-9750].
> PySpark DenseVector and SparseVector do not override the equality operator properly.  They should use semantics, not representation, for comparison.  (This is what Scala currently does.)



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